fix: 样式修改
This commit is contained in:
@@ -46,9 +46,9 @@ const CopyShortenedLink = ({ className }: { className?: string }) => {
|
||||
<CopyToClipboard
|
||||
text={shortUrl} // 如果 shortUrl 还没有值,则传递空字符串
|
||||
onCopy={(text, result) => {
|
||||
if (text) {
|
||||
if (!text) {
|
||||
toast.success('text is undefined');
|
||||
return '';
|
||||
return;
|
||||
}
|
||||
if (result) {
|
||||
toast.success(t('copySuccess'));
|
||||
|
||||
Reference in New Issue
Block a user