wupengfei
2025-09-17 1233a9a3e7b2cdf30474ffb2a52a7c5f5be6df95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { useUserStore } from '@/store/modules/user';
import { UserUtils } from '@bole-core/core';
import { useQuery, useQueryClient } from '@tanstack/vue-query';
 
export function useUser() {
  const userStore = useUserStore();
 
  const { userId, userInfo, userDetail } = storeToRefs(userStore);
 
  return {
    user: userInfo,
    userId: userId,
    userDetail: userDetail,
  };
}