mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
fix(menu): fix the menu disappeared in background mode
This commit is contained in:
parent
82c3186309
commit
50915c9754
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user