Răsfoiți Sursa

首页无图标问题

shizhong 11 luni în urmă
părinte
comite
fb04a64de8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/layout/components/TagsView/src/helper.ts

+ 1 - 1
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)