From 9b4a31fa6a32b9cab2e22bd141cf96ca29120445 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 1 Nov 2024 10:22:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=9B=B4=E6=96=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-client/src/store/modules/user.ts | 4 ++++ .../certd-client/src/views/framework/home/dashboard/index.vue | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/ui/certd-client/src/store/modules/user.ts b/packages/ui/certd-client/src/store/modules/user.ts index faeba177..21d1566a 100644 --- a/packages/ui/certd-client/src/store/modules/user.ts +++ b/packages/ui/certd-client/src/store/modules/user.ts @@ -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(); diff --git a/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue b/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue index 988172fa..3db8ecae 100644 --- a/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue +++ b/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue @@ -205,6 +205,7 @@ async function loadPluginGroups() { const pluginGroups = ref(); onMounted(async () => { + await userStore.loadUserInfo(); await loadLatestVersion(); await loadCount(); await loadPluginGroups();