14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
import { defineStore } from 'pinia';
|
|
import { getCache, setCache } from '@/utils/catch';
|
|
import { TOKEN_KEY } from '@/enums/cacheEnum';
|
|
import { login } from '@/services/api/user';
|
|
|
|
interface UserState {}
|
|
|
|
export const useUserStore = defineStore({
|
|
id: 'user',
|
|
state: (): UserState => ({}),
|
|
getters: {},
|
|
actions: {},
|
|
});
|