Browse Source

fix(登录): 修复获取登录用户名失败的问题

shizhongming 2 years ago
parent
commit
68ea6443b0
  1. 1
      src/store/modules/user.ts

1
src/store/modules/user.ts

@ -105,6 +105,7 @@ export const useUserStore = defineStore({
this.setRoleList(roles);
if (!this.getToken) return null;
// get user info
userInfo.realName = userInfo.fullName;
this.setUserInfo({
...userInfo,
});

Loading…
Cancel
Save