From 92034e64c9bb28c262b0fcb90660b58328aa2f5e Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 23 十月 2025 14:35:05 +0800
Subject: [PATCH] fix: bug
---
src/hooks/useUser.ts | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/hooks/useUser.ts b/src/hooks/useUser.ts
index 1d23af1..d3fab41 100644
--- a/src/hooks/useUser.ts
+++ b/src/hooks/useUser.ts
@@ -2,6 +2,7 @@
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() {
@@ -16,8 +17,17 @@
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,
};
}
--
Gitblit v1.9.1