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', name: 'navbar',
methods: { methods: {
async logout() { async logout() {
window.location.assign(CONFIG.WALLET_URL)
// window.location = CONFIG.WALLET_URL
this.$apollo this.$apollo
.mutate({ .mutate({
mutation: logout, mutation: logout,
}) })
.then(() => { .then(() => {
window.location.assign(CONFIG.WALLET_URL)
// window.location = CONFIG.WALLET_URL
this.$store.dispatch('logout') this.$store.dispatch('logout')
}) })
.catch(() => { .catch(() => {
window.location.assign(CONFIG.WALLET_URL)
// window.location = CONFIG.WALLET_URL
this.$store.dispatch('logout') this.$store.dispatch('logout')
}) })
}, },