From 2d1c222e6b5b0140bf92b522a95728c872075661 Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Thu, 16 Mar 2023 20:02:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95=E9=AB=98=E4=BA=AE=20(?= =?UTF-8?q?#450)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/MenuContent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/components/MenuContent.vue b/src/layouts/components/MenuContent.vue index beb4b6d..2f0ddb0 100644 --- a/src/layouts/components/MenuContent.vue +++ b/src/layouts/components/MenuContent.vue @@ -85,7 +85,7 @@ const getHref = (item: MenuRoute) => { }; const getPath = (item: ListItemType) => { - if (active.value.startsWith(item.path)) { + if (active.value === item.path) { return active.value; } return item.meta?.single ? item.redirect : item.path;