From 44d962c2ffbe37bb5a6fdc17bf814c440525f9aa Mon Sep 17 00:00:00 2001 From: zclzone Date: Sat, 16 Dec 2023 22:01:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=A2=E5=8C=85=E5=B1=91=E5=AD=90?= =?UTF-8?q?=E9=A1=B9=E9=80=89=E4=B8=AD=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/BreadCrumb.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/components/BreadCrumb.vue b/src/layouts/components/BreadCrumb.vue index 3e38e29..a85ef4f 100644 --- a/src/layouts/components/BreadCrumb.vue +++ b/src/layouts/components/BreadCrumb.vue @@ -72,9 +72,9 @@ function getDropOptions(list = []) { })) } -function handleDropSelect(item) { - if (item.path && item.code !== route.name) { - router.push(item.path) +function handleDropSelect(code) { + if (code && code !== route.name) { + router.push({ name: code }) } }