We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa01c1 commit 23996b3Copy full SHA for 23996b3
src/components/GlobalHeader/AvatarDropdown.vue
@@ -54,9 +54,12 @@ export default {
54
title: this.$t('layouts.usermenu.dialog.title'),
55
content: this.$t('layouts.usermenu.dialog.content'),
56
onOk: () => {
57
- return new Promise((resolve, reject) => {
58
- setTimeout(Math.random() > 0.5 ? resolve : reject, 1500)
59
- }).catch(() => console.log('Oops errors!'))
+ // return new Promise((resolve, reject) => {
+ // setTimeout(Math.random() > 0.5 ? resolve : reject, 1500)
+ // }).catch(() => console.log('Oops errors!'))
60
+ return this.$store.dispatch('Logout').then(() => {
61
+ this.$router.push({ name: 'login' })
62
+ })
63
},
64
onCancel () {}
65
})
0 commit comments