Skip to content

Commit

Permalink
fix(menu): fix the menu disappeared in background mode
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Mar 17, 2021
1 parent 82c3186 commit 50915c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/router/helper/menuHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 50915c9

Please sign in to comment.