Refine GQL logout in admin interface

This commit is contained in:
Wolfgang Huß 2022-10-12 17:16:30 +02:00
parent 34ec593f21
commit cb0e044fb4

View File

@ -34,18 +34,16 @@ export default {
name: 'navbar',
methods: {
async logout() {
window.location.assign(CONFIG.WALLET_URL)
// window.location = CONFIG.WALLET_URL
this.$apollo
.mutate({
mutation: logout,
})
.then(() => {
window.location.assign(CONFIG.WALLET_URL)
// window.location = CONFIG.WALLET_URL
this.$store.dispatch('logout')
})
.catch(() => {
window.location.assign(CONFIG.WALLET_URL)
// window.location = CONFIG.WALLET_URL
this.$store.dispatch('logout')
})
},