From fb04a64de85f85c04ee2d4facbd5ee86e8b95d12 Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Wed, 26 Jun 2024 12:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=97=A0=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/src/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/TagsView/src/helper.ts b/src/layout/components/TagsView/src/helper.ts index 22f6a507..322c8581 100644 --- a/src/layout/components/TagsView/src/helper.ts +++ b/src/layout/components/TagsView/src/helper.ts @@ -7,7 +7,7 @@ export const filterAffixTags = (routes: AppRouteRecordRaw[], parentPath = '') => const meta = route.meta as RouteMeta const tagPath = pathResolve(parentPath, route.path) if (meta?.affix) { - tags.push({ ...route, path: tagPath, fullPath: tagPath } as RouteLocationNormalizedLoaded) + tags.push({ ...route, path: tagPath, fullPath: tagPath, matched: [ {}, { meta } ] } as RouteLocationNormalizedLoaded) } if (route.children) { const tempTags: RouteLocationNormalizedLoaded[] = filterAffixTags(route.children, tagPath)