diff --git a/ui/src/api/user/user.ts b/ui/src/api/user/user.ts index 4674af381..f4fd1156e 100644 --- a/ui/src/api/user/user.ts +++ b/ui/src/api/user/user.ts @@ -34,6 +34,16 @@ const getUserList: (loading?: Ref) => Promise) => Promise[]>> = ( + arg, + loading, +) => { + return get('/user/list', undefined, loading) +} + /** * 校验验证码 * @param request 请求对象 @@ -91,6 +101,7 @@ export default { getUserProfile, getProfile, getUserList, + getAllMemberList, postResetPassword, checkCode, sendEmit, diff --git a/ui/src/utils/dynamics-api/shared-api.ts b/ui/src/utils/dynamics-api/shared-api.ts index 46be4ecba..e5aa458dd 100644 --- a/ui/src/utils/dynamics-api/shared-api.ts +++ b/ui/src/utils/dynamics-api/shared-api.ts @@ -14,6 +14,7 @@ import paragraphSystemShareApi from '@/api/system-shared/paragraph' import problemSystemShareApi from '@/api/system-shared/problem' import chatUserSystemShareApi from '@/api/system-shared/chat-user' import workspaceApi from '@/api/workspace/workspace' +import systemUserApi from '@/api/user/user' // 普通 API const workspaceApiMap = { @@ -36,7 +37,7 @@ const systemShareApiMap = { paragraph: paragraphSystemShareApi, problem: problemSystemShareApi, chatUser: chatUserSystemShareApi, - workspace: workspaceApi, // 共享的应该查全部人吧 + workspace: systemUserApi, // 共享的应该查全部人吧 } as any // 资源管理 API