修改获取用户名称

This commit is contained in:
qinjie 2021-09-09 17:58:53 +08:00
parent 790a5f8488
commit b1eb82aff6
1 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ const user = {
commit('SET_ROLES', 1)
commit('SET_BUTTONS', data.permissions)
commit('SET_INFO', data)
commit('SET_NAME', { name: data.userName, welcome: welcome() })
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)
}