完成仓库模块

This commit is contained in:
Zy
2026-04-23 17:59:36 +08:00
parent 985860c9de
commit 9d4416b238
39 changed files with 5040 additions and 80 deletions

View File

@@ -7,6 +7,7 @@ import { defineStore } from 'pinia';
import { ref } from 'vue';
import { useHouseStore } from './house';
import { UserInfo } from '@/api/system/user/types';
import { useDictStore } from './dict';
export const useUserStore = defineStore('user', () => {
const token = ref(getToken());
@@ -63,6 +64,7 @@ export const useUserStore = defineStore('user', () => {
// 注销
const logout = async (): Promise<void> => {
useDictStore().cleanDict();
await logoutApi();
token.value = '';
roles.value = [];