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)