mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-13 01:38:21 +01:00
31 lines
610 B
JavaScript
Vendored
31 lines
610 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' })
|
|
},
|
|
|
|
exitSettings: function(event) {
|
|
if (event) {
|
|
this.$notify({ clean: true })
|
|
this.$router.push({ name: 'accounts' })
|
|
}
|
|
}
|
|
}
|
|
|
|
}) |