mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Refine GQL logout in admin interface
This commit is contained in:
parent
34ec593f21
commit
cb0e044fb4
@ -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')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user