From 41f3d37db102e87fceb3f49eb47ae38747decc43 Mon Sep 17 00:00:00 2001 From: LiuHao Date: Mon, 15 Apr 2024 14:00:39 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=89=93=E5=BC=80topNav=E4=B8=8D=E5=B1=95=E5=BC=80=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TopNav/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index c41177e..e93e005 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -84,7 +84,10 @@ const childrenMenus = computed(() => { // 默认激活的菜单 const activeMenu = computed(() => { - const path = route.path; + let path = route.path; + if (path === '/index') { + path = '/system/user'; + } let activePath = path; if (path !== undefined && path.lastIndexOf('/') > 0 && hideList.indexOf(path) === -1) { const tmpPath = path.substring(1, path.length);