Fix not redirecting to login page after logging out
This commit is contained in:
parent
f878063015
commit
495350fa83
1 changed files with 3 additions and 1 deletions
|
@ -307,6 +307,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
logout() {
|
logout() {
|
||||||
this.$store.dispatch('auth/logout')
|
this.$store.dispatch('auth/logout')
|
||||||
|
router.push({name: 'login'})
|
||||||
},
|
},
|
||||||
loadNamespaces() {
|
loadNamespaces() {
|
||||||
this.$store.dispatch('namespaces/loadNamespaces')
|
this.$store.dispatch('namespaces/loadNamespaces')
|
||||||
|
@ -320,6 +321,7 @@
|
||||||
if (this.$store.state[IS_FULLPAGE]) {
|
if (this.$store.state[IS_FULLPAGE]) {
|
||||||
this.$store.commit(IS_FULLPAGE, false)
|
this.$store.commit(IS_FULLPAGE, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loadNamespacesIfNeeded(e)
|
this.loadNamespacesIfNeeded(e)
|
||||||
this.mobileMenuActive = false
|
this.mobileMenuActive = false
|
||||||
this.userMenuActive = false
|
this.userMenuActive = false
|
||||||
|
|
Loading…
Reference in a new issue