mirror of https://github.com/certd/certd
fix: 修复头像没有更新的bug
parent
8c7f976ef5
commit
9b4a31fa6a
|
@ -82,6 +82,10 @@ export const useUserStore = defineStore({
|
||||||
return userInfo;
|
return userInfo;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async loadUserInfo() {
|
||||||
|
await this.getUserInfoAction();
|
||||||
|
},
|
||||||
|
|
||||||
async onLoginSuccess(loginData: any) {
|
async onLoginSuccess(loginData: any) {
|
||||||
await this.getUserInfoAction();
|
await this.getUserInfoAction();
|
||||||
const userInfo = await this.getUserInfoAction();
|
const userInfo = await this.getUserInfoAction();
|
||||||
|
|
|
@ -205,6 +205,7 @@ async function loadPluginGroups() {
|
||||||
|
|
||||||
const pluginGroups = ref();
|
const pluginGroups = ref();
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
await userStore.loadUserInfo();
|
||||||
await loadLatestVersion();
|
await loadLatestVersion();
|
||||||
await loadCount();
|
await loadCount();
|
||||||
await loadPluginGroups();
|
await loadPluginGroups();
|
||||||
|
|
Loading…
Reference in New Issue