feat: 接口联调

This commit is contained in:
2026-08-03 19:12:33 +08:00
parent 3e94ce60ec
commit 2497e6aabb
29 changed files with 941 additions and 1283 deletions
+2 -2
View File
@@ -5,12 +5,12 @@ import type { MenuNode, PermissionCode } from '@/types';
* 获取当前用户的菜单树(后端下发)
*/
export function fetchMenuTree(): Promise<MenuNode[]> {
return get('/menu/tree');
return get('/op/permission');
}
/**
* 获取当前用户的权限编码列表
*/
export function fetchPermissions(): Promise<PermissionCode[]> {
return get('/permission/list');
return get('/admin/sys/role/permissionList');
}