|
@@ -111,9 +111,6 @@ const user = {
|
|
}else{
|
|
}else{
|
|
store.dispatch('LogOut').then(() => {
|
|
store.dispatch('LogOut').then(() => {
|
|
localStorage.removeItem('serviceType');
|
|
localStorage.removeItem('serviceType');
|
|
- router.replace({
|
|
|
|
- path: '/login'
|
|
|
|
- })
|
|
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -143,7 +140,6 @@ const user = {
|
|
commit('SET_ROLES', [])
|
|
commit('SET_ROLES', [])
|
|
commit('SET_PERMISSIONS', [])
|
|
commit('SET_PERMISSIONS', [])
|
|
removeToken()
|
|
removeToken()
|
|
- debugger
|
|
|
|
logout(state.token).then(() => {
|
|
logout(state.token).then(() => {
|
|
// commit('SET_TOKEN', '')
|
|
// commit('SET_TOKEN', '')
|
|
// commit('SET_ROLES', [])
|
|
// commit('SET_ROLES', [])
|