Browse Source

👣 重构底层多租户

master
wangxiang 3 years ago
parent
commit
009591b817
  1. 2
      kicc-ui/src/store/modules/user.ts

2
kicc-ui/src/store/modules/user.ts

@ -133,7 +133,7 @@ export const useUserStore = defineStore({ @@ -133,7 +133,7 @@ export const useUserStore = defineStore({
},
/** 获取用户信息 */
async getUserInfoAction(): Promise<User> {
const userInfo = await getUserInfo();
const userInfo = await getUserInfo().catch(()=> this.resetState());
userInfo.avatar || (userInfo.avatar = defaultAvatar);
userInfo.tenantIds = String(userInfo.tenantId).split(',');
// 存储用户扩展信息,便于鉴权

Loading…
Cancel
Save