fix 选择器

This commit is contained in:
2025-10-30 17:59:04 +08:00
parent 2b252e1b3c
commit 0935ec5ec5
22 changed files with 2313 additions and 125 deletions

View File

@@ -5,7 +5,7 @@
*/
import { api } from '@/apis/index';
import type { SysPermission, SysRole, SysRolePermission, ResultDomain } from '@/types';
import type { SysPermission, SysRole, SysRolePermission, ResultDomain, UserDeptRoleVO } from '@/types';
/**
* 角色API服务
@@ -17,8 +17,8 @@ export const roleApi = {
* @author yslg
* @ since 2025-10-09
*/
async getAllRoles(): Promise<ResultDomain<SysRole>> {
const response = await api.post<SysRole>('/roles/all');
async getAllRoles(): Promise<ResultDomain<UserDeptRoleVO>> {
const response = await api.post<UserDeptRoleVO>('/roles/all');
return response.data;
},