Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -44,6 +44,7 @@ | @@ -44,6 +44,7 @@ | ||
| 44 | const handleOpenLink = () => { | 44 | const handleOpenLink = () => { |
| 45 | window.open(unref(link)); | 45 | window.open(unref(link)); |
| 46 | }; | 46 | }; |
| 47 | + const { createMessage } = useMessage(); | ||
| 47 | 48 | ||
| 48 | const handleSubmit = async () => { | 49 | const handleSubmit = async () => { |
| 49 | try { | 50 | try { |
| @@ -53,6 +54,7 @@ | @@ -53,6 +54,7 @@ | ||
| 53 | await props?.shareApi?.({ id, ...value }); | 54 | await props?.shareApi?.({ id, ...value }); |
| 54 | closeModal(); | 55 | closeModal(); |
| 55 | emit('success'); | 56 | emit('success'); |
| 57 | + createMessage.success('操作成功'); | ||
| 56 | } finally { | 58 | } finally { |
| 57 | loading.value = false; | 59 | loading.value = false; |
| 58 | } | 60 | } |
| @@ -63,7 +65,6 @@ | @@ -63,7 +65,6 @@ | ||
| 63 | }); | 65 | }); |
| 64 | 66 | ||
| 65 | const { clipboardRef, isSuccessRef } = useCopyToClipboard(); | 67 | const { clipboardRef, isSuccessRef } = useCopyToClipboard(); |
| 66 | - const { createMessage } = useMessage(); | ||
| 67 | const handleCopy = () => { | 68 | const handleCopy = () => { |
| 68 | clipboardRef.value = unref(link); | 69 | clipboardRef.value = unref(link); |
| 69 | if (unref(isSuccessRef)) { | 70 | if (unref(isSuccessRef)) { |