mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 00:42:12 +08:00
refactor(menu): added component. Solve the menu stuck problem
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user