From 3a6cec3cc9068778953f21516660bc4403bc7ceb Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 04 八月 2025 18:24:28 +0800 Subject: [PATCH] fix: 修改功能模块 --- src/hooks/useUser.ts | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/hooks/useUser.ts b/src/hooks/useUser.ts index d522656..643a770 100644 --- a/src/hooks/useUser.ts +++ b/src/hooks/useUser.ts @@ -1,7 +1,5 @@ import { useUserStore } from '@/store/modules/user'; import { UserUtils } from '@bole-core/core'; -// import * as userRoleServices from '@/services/api/UserRole'; -import * as userServices from '@/services/api/User'; import { useQuery, useQueryClient } from '@tanstack/vue-query'; export function useIsSystemAdmin() { @@ -23,17 +21,21 @@ } export function useAllRoleList() { - const { data: allRoleList, refetch } = useQuery({ - queryKey: ['userServices/getAllRoles'], - queryFn: async () => { - let res = await userServices.getAllRoles({ showLoading: false }); - return res; - }, - placeholderData: () => [] as API.RoleInfo[], - }); + // const { data: allRoleList, refetch } = useQuery({ + // queryKey: ['userServices/getAllRoles'], + // queryFn: async () => { + // let res = await userServices.getAllRoles({ showLoading: false }); + // return res; + // }, + // placeholderData: () => [] as API.RoleInfo[], + // }); + // return { + // allRoleList, + // refetch, + // }; return { - allRoleList, - refetch, + allRoleList: [], + refetch: () => {}, }; } -- Gitblit v1.9.1