diff --git a/components/dashboard/links/Editor.vue b/components/dashboard/links/Editor.vue index a66b9b9..90113d7 100644 --- a/components/dashboard/links/Editor.vue +++ b/components/dashboard/links/Editor.vue @@ -16,6 +16,7 @@ const props = defineProps({ const emit = defineEmits(['update:link']) +const { t } = useI18n() const link = ref(props.link) const dialogOpen = ref(false) diff --git a/components/dashboard/links/Link.vue b/components/dashboard/links/Link.vue index 132726a..4b36f53 100644 --- a/components/dashboard/links/Link.vue +++ b/components/dashboard/links/Link.vue @@ -34,7 +34,7 @@ function updateLink(link, type) { } function copyLink() { - copy(shortLink) + copy(shortLink.value) toast(t('links.copy_success')) }