Pārlūkot izejas kodu

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

shizhongming 2 gadi atpakaļ
vecāks
revīzija
68ea6443b0
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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,
       });