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