提交 50915c97 作者: Vben

fix(menu): fix the menu disappeared in background mode

上级 82c31863
...@@ -47,13 +47,15 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) { ...@@ -47,13 +47,15 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) {
const list = treeMap(routeList, { const list = treeMap(routeList, {
conversion: (node: AppRouteRecordRaw) => { conversion: (node: AppRouteRecordRaw) => {
const { meta: { title, hideMenu = false } = {} } = node; const { meta: { title, hideMenu = false } = {} } = node;
return { return {
...(node.meta || {}), ...(node.meta || {}),
name: title, name: title,
hideMenu, hideMenu,
path: node.path,
}; };
}, },
}); });
joinParentPath(list); joinParentPath(list);
return list; return cloneDeep(list);
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论