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