fix: clear all localstorage when logging out

This commit is contained in:
kolaente 2022-08-09 11:55:19 +02:00
parent 3440d71e74
commit 51ffe93048
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 45 additions and 11 deletions

View file

@ -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')
},
},