Commit b2a1951fd00433cb5e1c9dce982c53a9c9edd874
1 parent
c3096e26
fix(menu): ensure the menu has meta attributes close #397
Showing
1 changed file
with
1 additions
and
0 deletions
src/router/helper/menuHelper.ts
@@ -54,6 +54,7 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) { | @@ -54,6 +54,7 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) { | ||
54 | 54 | ||
55 | return { | 55 | return { |
56 | ...(node.meta || {}), | 56 | ...(node.meta || {}), |
57 | + meta: node.meta, | ||
57 | name: title, | 58 | name: title, |
58 | hideMenu, | 59 | hideMenu, |
59 | path: node.path, | 60 | path: node.path, |