|
@@ -45,7 +45,7 @@ const user = {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getInfo(state.token).then(response => {
|
|
|
const data = response.data
|
|
|
- commit('SET_ROLES', data.role)
|
|
|
+ commit('SET_ROLES', data.roles)
|
|
|
commit('SET_NAME', data.name)
|
|
|
commit('SET_AVATAR', data.avatar)
|
|
|
resolve(response)
|