feat: Dynamically get the menu from the back end

This commit is contained in:
vben
2024-06-30 15:03:37 +08:00
parent 1d70d71537
commit 9572d1a1c5
71 changed files with 1033 additions and 509 deletions

View File

@@ -1 +1,2 @@
export * from './menu';
export * from './user';

View File

@@ -0,0 +1,12 @@
import type { RouteRecordStringComponent } from '@vben/types';
import { requestClient } from '#/forward';
/**
* 获取用户所有菜单
*/
async function getAllMenus() {
return requestClient.get<RouteRecordStringComponent[]>('/menu/getAll');
}
export { getAllMenus };

View File

@@ -19,5 +19,3 @@ async function getUserInfo() {
}
export { getUserInfo, userLogin };
export * from './user';