fix: 修复头像没有更新的bug

pull/243/head
xiaojunnuo 2024-11-01 10:22:40 +08:00
parent 8c7f976ef5
commit 9b4a31fa6a
2 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,10 @@ export const useUserStore = defineStore({
return userInfo;
},
async loadUserInfo() {
await this.getUserInfoAction();
},
async onLoginSuccess(loginData: any) {
await this.getUserInfoAction();
const userInfo = await this.getUserInfoAction();

View File

@ -205,6 +205,7 @@ async function loadPluginGroups() {
const pluginGroups = ref();
onMounted(async () => {
await userStore.loadUserInfo();
await loadLatestVersion();
await loadCount();
await loadPluginGroups();