1
2
3
4
5
6
7
8
9
10
11
12
13
14
| 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 } = storeToRefs(userStore);
|
| return {
| user: userInfo,
| userId: userId,
| };
| }
|
|