Skip to content

Commit

Permalink
fix: copy link url origin
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 4, 2024
1 parent 4a6cbed commit 97ad28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/SpringFestivalCouplets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 97ad28f

Please sign in to comment.