From 797da3baac879c4baa8e270aa918c4a051e8544b Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 15 Sep 2024 18:33:04 +0900 Subject: [PATCH] fix --- packages/frontend/src/pages/clip.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/pages/clip.vue b/packages/frontend/src/pages/clip.vue index 1d286facb2..7e5f0423f6 100644 --- a/packages/frontend/src/pages/clip.vue +++ b/packages/frontend/src/pages/clip.vue @@ -137,14 +137,14 @@ const headerActions = computed(() => clip.value && isOwned.value ? [{ menuItems.push({ icon: 'ti ti-link', text: i18n.ts.copyUrl, - handler: () => { + action: () => { copyToClipboard(`${url}/clips/${clip.value!.id}`); os.success(); }, }, { icon: 'ti ti-code', text: i18n.ts.genEmbedCode, - handler: () => { + action: () => { genEmbedCode('clips', clip.value!.id); }, }); @@ -153,7 +153,7 @@ const headerActions = computed(() => clip.value && isOwned.value ? [{ menuItems.push({ icon: 'ti ti-share', text: i18n.ts.share, - handler: async () => { + action: async () => { navigator.share({ title: clip.value!.name, text: clip.value!.description ?? '',