Parcourir la source

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

shizhongming il y a 2 ans
Parent
commit
68ea6443b0
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/store/modules/user.ts

+ 1 - 0
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,
       });