chore: 需要重新加载字典

This commit is contained in:
dap 2024-10-10 09:23:18 +08:00
parent e6374a6a06
commit f8e480d724

View File

@ -13,6 +13,8 @@ import { defineStore } from 'pinia';
import { doLogout, getUserInfoApi, loginApi, seeConnectionClose } from '#/api';
import { $t } from '#/locales';
import { useDictStore } from './dict';
export const useAuthStore = defineStore('auth', () => {
const accessStore = useAccessStore();
const userStore = useUserStore();
@ -115,6 +117,12 @@ export const useAuthStore = defineStore('auth', () => {
username: user.userName,
};
userStore.setUserInfo(userInfo);
/**
*
* 退
*/
const dictStore = useDictStore();
dictStore.resetCache();
return userInfo;
}