wupengfei
6 小时以前 b331f884097a2dc5086c8cf043c8c8f52e7640fe
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,
  };
}