From 009591b817088d1810c6ca15cd874865fd44eab8 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Tue, 17 May 2022 18:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A3=20=E9=87=8D=E6=9E=84=E5=BA=95?= =?UTF-8?q?=E5=B1=82=E5=A4=9A=E7=A7=9F=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/store/modules/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kicc-ui/src/store/modules/user.ts b/kicc-ui/src/store/modules/user.ts index 5cc22c32..f885bc28 100644 --- a/kicc-ui/src/store/modules/user.ts +++ b/kicc-ui/src/store/modules/user.ts @@ -133,7 +133,7 @@ export const useUserStore = defineStore({ }, /** 获取用户信息 */ async getUserInfoAction(): Promise { - const userInfo = await getUserInfo(); + const userInfo = await getUserInfo().catch(()=> this.resetState()); userInfo.avatar || (userInfo.avatar = defaultAvatar); userInfo.tenantIds = String(userInfo.tenantId).split(','); // 存储用户扩展信息,便于鉴权