| | |
| | | import { UserUtils } from '@bole-core/core'; |
| | | // import * as userRoleServices from '@/services/api/UserRole'; |
| | | import * as userServices from '@/services/api/User'; |
| | | import * as ParkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | |
| | | export function useIsSystemAdmin() { |
| | |
| | | |
| | | const { userId, userInfo } = storeToRefs(userStore); |
| | | |
| | | const { data: userDetail } = useQuery({ |
| | | queryKey: ['ParkBountyApplyServices/get818UserInfo'], |
| | | queryFn: async () => { |
| | | return await ParkBountyApplyServices.get818UserInfo(); |
| | | }, |
| | | placeholderData: () => ({} as API.UserInfoV2), |
| | | }); |
| | | |
| | | return { |
| | | user: userInfo, |
| | | userId: userId, |
| | | userDetail: userDetail, |
| | | }; |
| | | } |