From 34e523d5ed7f25a0bc20532577ccde90386352aa Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 15:22:41 +0800
Subject: [PATCH] Merge branch 'dev-2.2.3' of http://120.26.58.240:8888/r/JYBIndependentFront into dev-2.2.3
---
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