fix: clear all localstorage when logging out
This commit is contained in:
parent
3440d71e74
commit
51ffe93048
3 changed files with 45 additions and 11 deletions
|
|
@ -287,6 +287,7 @@ export default {
|
|||
},
|
||||
logout(ctx) {
|
||||
removeToken()
|
||||
window.localStorage.clear() // Clear all settings and history we might have saved in local storage.
|
||||
ctx.dispatch('checkAuth')
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue