perf[permission]:set role => roles

This commit is contained in:
Pan
2018-01-05 13:21:14 +08:00
parent c2271d0bf5
commit 79c7160d01
3 changed files with 3 additions and 3 deletions

View File

@@ -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)