mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-16 08:37:53 +02:00
Reduce data display latency using localstorage
This commit is contained in:
4
resources/js/mixins.js
vendored
4
resources/js/mixins.js
vendored
@ -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' })
|
||||
|
Reference in New Issue
Block a user