getLoginUser调整
This commit is contained in:
parent
c01a762812
commit
eca6748670
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue