feat: 接口联调
This commit is contained in:
+2
-2
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user