diff --git a/src/utils/login.js b/src/utils/login.js index 0286df90d..1579643fb 100644 --- a/src/utils/login.js +++ b/src/utils/login.js @@ -140,6 +140,7 @@ function loginNew (res) { const userInfoJSON = decodeURIComponent(userInfoStr) const userInfo = JSON.parse(userInfoJSON) userInfo.userId = userInfo.usid + userInfo.uName = userInfo.uName || userInfo.uname store.commit('setToken', userInfo.token) store.commit('setUserInfo', JSON.stringify(userInfo)) getMenu({ userId: store.getters.userInfo.userId })