Clean logout mixin and session middleware

This commit is contained in:
Bubka
2022-05-13 16:44:01 +02:00
parent 2d38980890
commit 233c61d659
2 changed files with 2 additions and 5 deletions

View File

@ -13,11 +13,8 @@ Vue.mixin({
async appLogout(evt) {
await this.axios.get('/user/logout')
this.$storage.clear()
delete this.axios.defaults.headers.common['Authorization']
this.$router.push({ name: 'login' })
location.reload()
},
exitSettings: function(event) {