From 97ad28ff59e938ef8fca66e1c0c27eb9d7136374 Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Mon, 5 Feb 2024 02:43:46 +0800 Subject: [PATCH] fix: copy link url origin --- components/SpringFestivalCouplets.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SpringFestivalCouplets.vue b/components/SpringFestivalCouplets.vue index 3a919a5..281e6db 100644 --- a/components/SpringFestivalCouplets.vue +++ b/components/SpringFestivalCouplets.vue @@ -49,7 +49,7 @@ async function copyImg() { const { copy, copied } = useClipboard() async function shareLink() { - const txt = `${window.location.origin}${import.meta.env.BASE_URL.replace('_nuxt/', '')}?couplets=${encodeURIComponent(JSON.stringify(app.coupletsData))}&prompt=${encodeURIComponent(app.prompt)}` + const txt = `${window.location.origin}/?couplets=${encodeURIComponent(JSON.stringify(app.coupletsData))}&prompt=${encodeURIComponent(app.prompt)}` await copy(txt) if (copied.value) {