瀏覽代碼

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

shizhongming 2 年之前
父節點
當前提交
68ea6443b0
共有 1 個文件被更改,包括 1 次插入0 次删除
  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,
       });