Reduce data display latency using localstorage

This commit is contained in:
Bubka
2020-11-26 20:41:02 +01:00
parent 3a96c689fb
commit ea2ebc91d3
6 changed files with 51 additions and 28 deletions

View File

@ -14,9 +14,7 @@ Vue.mixin({
await this.axios.get('api/logout')
localStorage.removeItem('jwt')
localStorage.removeItem('user')
this.$storage.clear()
delete this.axios.defaults.headers.common['Authorization']
this.$router.push({ name: 'login' })