Browse Source

vuex用户名取值修正

RuoYi 5 years ago
parent
commit
a34edef603
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-ui/src/store/modules/user.js

+ 1 - 1
ruoyi-ui/src/store/modules/user.js

@@ -58,7 +58,7 @@ const user = {
           } else {
             commit('SET_ROLES', ['ROLE_DEFAULT'])
           }
-          commit('SET_NAME', user.username)
+          commit('SET_NAME', user.userName)
           commit('SET_AVATAR', avatar)
           resolve(res)
         }).catch(error => {