From 76090631fc87bde767c3102e0a4359240f3debb6 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 20 Jun 2024 18:29:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9D=A2=E5=8C=85?= =?UTF-8?q?=E5=B1=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/layout/components/breadcrumb/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue index aaf6924b7..96476fcfb 100644 --- a/ui/src/layout/components/breadcrumb/index.vue +++ b/ui/src/layout/components/breadcrumb/index.vue @@ -161,10 +161,11 @@ function changeMenu(id: string) { router.push({ name: lastMatched.name, params: { id: id } }) } else if (isApplication.value) { const type = list.value?.filter((v) => v.id === id)?.[0]?.type - if (type === 'WORK_FLOW') { - if (lastMatched.name === 'AppSetting' || lastMatched.name === 'AppHitTest') { - router.push({ path: `/application/${id}/${type}/overview` }) - } + if ( + type === 'WORK_FLOW' && + (lastMatched.name === 'AppSetting' || lastMatched.name === 'AppHitTest') + ) { + router.push({ path: `/application/${id}/${type}/overview` }) } else { router.push({ name: lastMatched.name,