提交 b2a1951f 作者: Vben

fix(menu): ensure the menu has meta attributes close #397

上级 c3096e26
...@@ -54,6 +54,7 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) { ...@@ -54,6 +54,7 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) {
return { return {
...(node.meta || {}), ...(node.meta || {}),
meta: node.meta,
name: title, name: title,
hideMenu, hideMenu,
path: node.path, path: node.path,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论