chore: some typo

This commit is contained in:
vben
2021-02-05 01:07:36 +08:00
parent 612995a532
commit 70c0877d4f
7 changed files with 17 additions and 11 deletions

View File

@@ -64,7 +64,6 @@ export async function getCurrentParentPath(currentPath: string) {
export async function getShallowMenus(): Promise<Menu[]> {
const menus = await getAsyncMenus();
const routes = router.getRoutes();
const shallowMenuList = menus.map((item) => ({ ...item, children: undefined }));
return !isBackMode() ? shallowMenuList.filter(basicFilter(routes)) : shallowMenuList;
}