diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index 888bdfe68..e93657f9d 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -60,34 +60,9 @@ async function fetch() { } const showRedirectToSummaryIcon = computed(() => { - const exist = existSummary(route.matched); const isDialog = document.querySelectorAll('[role="dialog"]').length > 0; - - // const isSameModule = `${route.meta.moduleName}Summary` === props.dataKey; - // if (!isSameModule) return true; - - console.error( - isDialog, - 'exist', - isSummary.value, - route.matched, - !isSummary.value, - route.meta.moduleName, - exist - ); return isDialog; }); - -function existSummary(routes) { - const hasSummary = routes.some((r) => r.name === `${route.meta.moduleName}Summary`); - if (hasSummary) return hasSummary; - for (const current of routes) { - if (current.path != '/' && current.children) { - const exist = existSummary(current.children); - if (exist) return exist; - } - } -}