提交 50915c97 编写于 作者: V Vben

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

上级 82c31863
......@@ -47,13 +47,15 @@ export function transformRouteToMenu(routeModList: AppRouteModule[]) {
const list = treeMap(routeList, {
conversion: (node: AppRouteRecordRaw) => {
const { meta: { title, hideMenu = false } = {} } = node;
return {
...(node.meta || {}),
name: title,
hideMenu,
path: node.path,
};
},
});
joinParentPath(list);
return list;
return cloneDeep(list);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册