fix 选择器
This commit is contained in:
@@ -53,8 +53,8 @@ export const learningTaskApi = {
|
||||
* @param filter 过滤条件
|
||||
* @returns Promise<ResultDomain<LearningTask>>
|
||||
*/
|
||||
async getTaskPage(pageParam: PageParam, filter: LearningTask): Promise<ResultDomain<LearningTask>> {
|
||||
const response = await api.post<LearningTask>(`${this.learningTaskPrefix}/page`, {pageParam, filter});
|
||||
async getTaskPage(pageParam: PageParam, filter: LearningTask): Promise<ResultDomain<TaskVO>> {
|
||||
const response = await api.post<TaskVO>(`${this.learningTaskPrefix}/page`, {pageParam, filter});
|
||||
return response.data;
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user