getLoginUser调整

This commit is contained in:
qinjie 2021-09-09 18:17:45 +08:00
parent c01a762812
commit eca6748670
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ const user = {
const data = response.data const data = response.data
commit('SET_ROLES', 1) commit('SET_ROLES', 1)
commit('SET_BUTTONS', data.permissions) commit('SET_BUTTONS', data.permissions)
commit('SET_INFO', data) commit('SET_INFO', data.user)
commit('SET_NAME', { name: data.user.userName, welcome: welcome() }) commit('SET_NAME', { name: data.user.userName, welcome: welcome() })
if (data.user.avatar != null) { if (data.user.avatar != null) {
commit('SET_AVATAR', process.env.VUE_APP_API_BASE_URL + '/sysFileInfo/preview?id=' + data.user.avatar) commit('SET_AVATAR', process.env.VUE_APP_API_BASE_URL + '/sysFileInfo/preview?id=' + data.user.avatar)