From 58cafbc73ffa27253446ee93077e1e382519ce8a Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 13 Jun 2023 22:18:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B7=AF=E7=94=B1`meta`=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0`activePath`=E5=8F=AF=E5=B0=86=E6=9F=90=E4=B8=AA?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=BF=80=E6=B4=BB=EF=BC=8C=E4=B8=BB=E8=A6=81?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E9=80=9A=E8=BF=87`query`=E6=88=96`params`?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E7=9A=84=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/asyncRoutes.ts | 2 + src/layout/components/sidebar/horizontal.vue | 9 +- src/layout/components/sidebar/mixNav.vue | 8 +- src/layout/components/sidebar/vertical.vue | 18 ++-- src/layout/components/tag/index.vue | 6 +- src/router/index.ts | 2 +- src/router/utils.ts | 2 +- types/global.d.ts | 93 ---------------- types/router.d.ts | 105 +++++++++++++++++++ 9 files changed, 135 insertions(+), 110 deletions(-) create mode 100644 types/router.d.ts diff --git a/mock/asyncRoutes.ts b/mock/asyncRoutes.ts index 8015ba44a0..80fc6f5641 100644 --- a/mock/asyncRoutes.ts +++ b/mock/asyncRoutes.ts @@ -179,6 +179,7 @@ const tabsRouter = { meta: { // 不在menu菜单中显示 showLink: false, + activePath: "/tabs/index", roles: ["admin", "common"] } }, @@ -190,6 +191,7 @@ const tabsRouter = { meta: { // 不在menu菜单中显示 showLink: false, + activePath: "/tabs/index", roles: ["admin", "common"] } } diff --git a/src/layout/components/sidebar/horizontal.vue b/src/layout/components/sidebar/horizontal.vue index 2d175d6641..18cc094973 100644 --- a/src/layout/components/sidebar/horizontal.vue +++ b/src/layout/components/sidebar/horizontal.vue @@ -1,8 +1,9 @@