From 86ccb11d942bd7e7667c8a447996ec899b976512 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 5 Dec 2023 10:31:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E9=9B=86,=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/layout/components/breadcrumb/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue index 183d0ef05..996461402 100644 --- a/ui/src/layout/components/breadcrumb/index.vue +++ b/ui/src/layout/components/breadcrumb/index.vue @@ -84,10 +84,9 @@ const isDataset = computed(() => { return meta?.activeMenu.includes('dataset') }) function changeMenu(id: string) { - if (isApplication.value) { - router.push({ path: `/application/${id}/overview` }) - } else if (isDataset.value) { - router.push({ path: `/dataset/${id}/document` }) + const lastMatched = route.matched[route.matched.length - 1] + if (lastMatched) { + router.push({ name: lastMatched.name, params: { id: id } }) } }