|
|
|
@ -8,7 +8,7 @@ const user = {
|
|
|
|
|
name: '',
|
|
|
|
|
avatar: '',
|
|
|
|
|
roles: [],
|
|
|
|
|
permissions: []
|
|
|
|
|
permissions: [],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
mutations: {
|
|
|
|
@ -32,7 +32,7 @@ const user = {
|
|
|
|
|
},
|
|
|
|
|
SET_PERMISSIONS: (state, permissions) => {
|
|
|
|
|
state.permissions = permissions
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
@ -100,6 +100,7 @@ const user = {
|
|
|
|
|
commit('SET_TOKEN', '')
|
|
|
|
|
commit('SET_ROLES', [])
|
|
|
|
|
commit('SET_PERMISSIONS', [])
|
|
|
|
|
sessionStorage.removeItem('FLOORDATA')
|
|
|
|
|
removeToken()
|
|
|
|
|
resolve()
|
|
|
|
|
}).catch(error => {
|
|
|
|
@ -115,7 +116,8 @@ const user = {
|
|
|
|
|
removeToken()
|
|
|
|
|
resolve()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|