mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-09 13:40:06 +00:00
fix(menu): fix the menu disappeared in background mode
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user