diff --git a/src/store/modules/user.js b/src/store/modules/user.js index b4b014d..b8a358a 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -58,7 +58,7 @@ const user = { const data = response.data commit('SET_ROLES', 1) commit('SET_BUTTONS', data.permissions) - commit('SET_INFO', data) + commit('SET_INFO', data.user) commit('SET_NAME', { name: data.user.userName, welcome: welcome() }) if (data.user.avatar != null) { commit('SET_AVATAR', process.env.VUE_APP_API_BASE_URL + '/sysFileInfo/preview?id=' + data.user.avatar)