mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-23 16:53:26 +01:00
24 lines
410 B
JavaScript
Vendored
24 lines
410 B
JavaScript
Vendored
import Vue from 'vue'
|
|
|
|
Vue.mixin({
|
|
|
|
data: function () {
|
|
return {
|
|
appVersion: window.appVersion
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
|
|
async appLogout(evt) {
|
|
|
|
await this.axios.get('/user/logout')
|
|
|
|
this.$storage.clear()
|
|
delete this.axios.defaults.headers.common['Authorization']
|
|
|
|
this.$router.push({ name: 'login' })
|
|
},
|
|
}
|
|
|
|
}) |