From 37baa9bcac89123338e4142343ccfd044bae85d8 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 4 Mar 2024 11:25:15 +0100 Subject: [PATCH] refs #6980 remove code --- src/components/ui/CardSummary.vue | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index bbe9f798a..cb2c97746 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -3,16 +3,10 @@ import { onMounted, ref, watch } from 'vue'; import axios from 'axios'; import SkeletonSummary from 'components/ui/SkeletonSummary.vue'; import VnLv from 'src/components/ui/VnLv.vue'; -import { useRoute } from 'vue-router'; -const route = useRoute(); +onMounted(() => fetch()); const entity = ref(); -const isSummary = ref(true); -onMounted(() => { - isSummary.value = !String(route.path).endsWith('/summary'); - fetch(); -}); const props = defineProps({ url: { type: String, @@ -54,13 +48,7 @@ watch(props, async () => {