From 092a338e72dd4deb9af4e9020f8bd45c9e31a124 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 18 Mar 2025 14:03:38 +0100 Subject: [PATCH] fix: card descriptor merge --- src/components/ui/CardDescriptor.vue | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 9e1f58500..1bbd3c5f1 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -48,7 +48,6 @@ const $props = defineProps({ const state = useState(); const route = useRoute(); const router = useRouter(); -const router = useRouter(); const { t } = useI18n(); const { copyText } = useClipboard(); const { viewSummary } = useSummaryDialog(); @@ -60,9 +59,6 @@ const isSameDataKey = computed(() => $props.dataKey === route.meta.moduleName); const DESCRIPTOR_PROXY = 'DescriptorProxy'; const moduleName = ref(); const isSameModuleName = route.matched[1].meta.moduleName !== moduleName.value; -const DESCRIPTOR_PROXY = 'DescriptorProxy'; -const moduleName = ref(); -const isSameModuleName = route.matched[1].meta.moduleName !== moduleName.value; defineExpose({ getData }); onBeforeMount(async () => { @@ -89,7 +85,6 @@ onBeforeMount(async () => { ); }); -function getName() { function getName() { let name = $props.dataKey; if ($props.dataKey.includes(DESCRIPTOR_PROXY)) { @@ -97,17 +92,11 @@ function getName() { } return name; } -const routeName = computed(() => { - let routeName = getName(); - return `${routeName}Summary`; - return name; -} const routeName = computed(() => { let routeName = getName(); return `${routeName}Summary`; }); - async function getData() { store.url = $props.url; store.filter = $props.filter ?? {}; @@ -176,8 +165,6 @@ const toModule = computed(() => {