refactor(menu): added component. Solve the menu stuck problem

This commit is contained in:
vben
2021-01-17 22:36:06 +08:00
parent 056fc13116
commit ff2b12b409
43 changed files with 1794 additions and 214 deletions

View File

@@ -54,7 +54,9 @@ export const getMenus = async (): Promise<Menu[]> => {
// 获取当前路径的顶级路径
export async function getCurrentParentPath(currentPath: string) {
const menus = await getAsyncMenus();
const allParentPath = await getAllParentPath(menus, currentPath);
return allParentPath?.[0];
}