-
+
@@ -23,6 +27,7 @@ import { useIdentityStore } from '@/stores/identity'
import { useShoppingCartStore } from '@/stores/shoppingCart'
import useIdentity from '@/components/identity/utils/useIdentity'
+const { copy } = useClipboard()
const identityStore = useIdentityStore()
const shoppingCartStore = useShoppingCartStore()
const { urlPrefix } = usePrefix()
diff --git a/components/gallery/GalleryItemButton/GalleryItemShareBtn.vue b/components/gallery/GalleryItemButton/GalleryItemShareBtn.vue
index 5f6c824ba0..405d9e03c3 100644
--- a/components/gallery/GalleryItemButton/GalleryItemShareBtn.vue
+++ b/components/gallery/GalleryItemButton/GalleryItemShareBtn.vue
@@ -10,8 +10,10 @@
+ @click="
+ toast(String($t('toast.urlCopy')))
+ copy(realworldFullPathShare)
+ ">
Copy Link
QR Code
@@ -47,6 +49,7 @@ import { isMobileDevice } from '@/utils/extension'
const QRCode = () => import('@/components/shared/QRCode.vue')
+const { copy } = useClipboard()
const route = useRoute()
const { $i18n } = useNuxtApp()
const { toast } = useToast()
diff --git a/components/identity/module/IdentityLink.vue b/components/identity/module/IdentityLink.vue
index 71f13d79c1..0dbdf5c404 100644
--- a/components/identity/module/IdentityLink.vue
+++ b/components/identity/module/IdentityLink.vue
@@ -5,8 +5,10 @@
+ @click="
+ toast('Copied to clipboard')
+ address ? copy(String(address)) : null
+ ">