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