getLoginUser调整
This commit is contained in:
parent
b1eb82aff6
commit
f8978d2e44
|
@ -60,8 +60,8 @@ const user = {
|
||||||
commit('SET_BUTTONS', data.permissions)
|
commit('SET_BUTTONS', data.permissions)
|
||||||
commit('SET_INFO', data)
|
commit('SET_INFO', data)
|
||||||
commit('SET_NAME', { name: data.user.userName, welcome: welcome() })
|
commit('SET_NAME', { name: data.user.userName, welcome: welcome() })
|
||||||
if (data.avatar != null) {
|
if (data.user.avatar != null) {
|
||||||
commit('SET_AVATAR', process.env.VUE_APP_API_BASE_URL + '/sysFileInfo/preview?id=' + data.avatar)
|
commit('SET_AVATAR', process.env.VUE_APP_API_BASE_URL + '/sysFileInfo/preview?id=' + data.user.avatar)
|
||||||
}
|
}
|
||||||
resolve(data)
|
resolve(data)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue