1
0
mirror of https://github.com/Bubka/2FAuth.git synced 2025-03-23 03:47:39 +01:00
2FAuth/resources/js/mixins.js

24 lines
408 B
JavaScript
Vendored

import Vue from 'vue'
Vue.mixin({
data: function () {
return {
appVersion: window.appVersion
}
},
methods: {
async appLogout(evt) {
await this.axios.get('api/logout')
this.$storage.clear()
delete this.axios.defaults.headers.common['Authorization']
this.$router.push({ name: 'login' })
},
}
})