From b87b3cae8710bba8099b0c57e6c0b0337862fe4b Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 9 Apr 2024 15:59:15 +0800 Subject: [PATCH] chore: update --- mock/asyncRoutes.ts | 9 +++------ src/layout/components/tag/index.vue | 1 + src/router/modules/able.ts | 6 ++---- src/router/modules/list.ts | 3 +-- src/router/modules/nested.ts | 3 +-- src/router/modules/ppt.ts | 3 +-- src/router/modules/table.ts | 3 +-- 7 files changed, 10 insertions(+), 18 deletions(-) diff --git a/mock/asyncRoutes.ts b/mock/asyncRoutes.ts index 2a161d04b..a1bad2c10 100644 --- a/mock/asyncRoutes.ts +++ b/mock/asyncRoutes.ts @@ -40,8 +40,7 @@ const systemManagementRouter = { meta: { icon: "ep:menu", title: "menus.pureSystemMenu", - roles: ["admin"], - fixedTag: true + roles: ["admin"] } }, { @@ -120,8 +119,7 @@ const permissionRouter = { name: "PermissionPage", meta: { title: "menus.purePermissionPage", - roles: ["admin", "common"], - fixedTag: true + roles: ["admin", "common"] } }, { @@ -245,8 +243,7 @@ const frameRouter = { title: "menus.purePiniaDoc", frameSrc: "https://pinia.vuejs.org/zh/index.html", keepAlive: true, - roles: ["admin", "common"], - fixedTag: true + roles: ["admin", "common"] } }, { diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue index 6f8476ad2..943366030 100644 --- a/src/layout/components/tag/index.vue +++ b/src/layout/components/tag/index.vue @@ -429,6 +429,7 @@ function showMenuModel( tagsViews[v].show = false; tagsViews[v].disabled = true; }); + fixedTagDisabled(); } else if (routeLength - 1 === currentIndex && currentIndex !== 0) { // 当前路由是所有路由中的最后一个 tagsViews[3].show = false; diff --git a/src/router/modules/able.ts b/src/router/modules/able.ts index 706d773d5..350fe395c 100644 --- a/src/router/modules/able.ts +++ b/src/router/modules/able.ts @@ -32,8 +32,7 @@ export default { name: "WaterMark", component: () => import("@/views/able/watermark.vue"), meta: { - title: $t("menus.pureWatermark"), - fixedTag: true + title: $t("menus.pureWatermark") } }, { @@ -73,8 +72,7 @@ export default { name: "Debounce", component: () => import("@/views/able/debounce.vue"), meta: { - title: $t("menus.pureDebounce"), - fixedTag: true + title: $t("menus.pureDebounce") } }, { diff --git a/src/router/modules/list.ts b/src/router/modules/list.ts index ac2428699..e63733942 100644 --- a/src/router/modules/list.ts +++ b/src/router/modules/list.ts @@ -17,8 +17,7 @@ export default { meta: { icon: "ri:bank-card-line", title: $t("menus.pureListCard"), - showParent: true, - fixedTag: true + showParent: true } } ] diff --git a/src/router/modules/nested.ts b/src/router/modules/nested.ts index 5950cd1b1..bc42f4623 100644 --- a/src/router/modules/nested.ts +++ b/src/router/modules/nested.ts @@ -42,8 +42,7 @@ export default { name: "Menu1-2-1", meta: { title: $t("menus.pureMenu1-2-1"), - keepAlive: true, - fixedTag: true + keepAlive: true } }, { diff --git a/src/router/modules/ppt.ts b/src/router/modules/ppt.ts index 8d76b1045..fcf292dd3 100644 --- a/src/router/modules/ppt.ts +++ b/src/router/modules/ppt.ts @@ -18,8 +18,7 @@ export default { title: "PPT", keepAlive: true, frameSrc: "https://pipipi-pikachu.github.io/PPTist/", - frameLoading: false, - fixedTag: true + frameLoading: false } } ] diff --git a/src/router/modules/table.ts b/src/router/modules/table.ts index 6a3b3d4c4..56b279f00 100644 --- a/src/router/modules/table.ts +++ b/src/router/modules/table.ts @@ -23,8 +23,7 @@ export default { name: "PureTableHigh", component: () => import("@/views/table/high.vue"), meta: { - title: $t("menus.pureTableHigh"), - fixedTag: true + title: $t("menus.pureTableHigh") } }, {