mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
fix: 修复头像没有更新的bug
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user