From 27a0b6fda78933193a88845c83bc43922e3c8bab Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 9 Apr 2024 14:22:02 +0800 Subject: [PATCH] chore: update --- src/router/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/router/utils.ts b/src/router/utils.ts index 1b80ac6c38..607b32792c 100644 --- a/src/router/utils.ts +++ b/src/router/utils.ts @@ -17,9 +17,9 @@ import { isIncludeAllChildren } from "@pureadmin/utils"; import { getConfig } from "@/config"; -import type { menuType } from "@/layout/types"; import { buildHierarchyTree } from "@/utils/tree"; import { userKey, type DataInfo } from "@/utils/auth"; +import { type menuType, routerArrays } from "@/layout/types"; import { useMultiTagsStoreHook } from "@/store/modules/multiTags"; import { usePermissionStoreHook } from "@/store/modules/permission"; const IFrame = () => import("@/layout/frameView.vue"); @@ -178,6 +178,10 @@ function handleAsyncRoutes(routeList) { ); usePermissionStoreHook().handleWholeMenus(routeList); } + useMultiTagsStoreHook().handleTags("equal", [ + ...routerArrays, + ...usePermissionStoreHook().flatteningRoutes.filter(v => v?.meta?.fixedTag) + ]); addPathMatch(); }