commit lohout to store before redirect

This commit is contained in:
Moriz Wahl 2021-04-20 12:12:38 +02:00
parent dd9b10a4cb
commit bc53844c7b

View File

@ -132,8 +132,8 @@ export default {
this.$sidebar.displaySidebar(true)
},
logout() {
this.$router.push('/login')
this.$store.dispatch('logout')
this.$router.push('/login')
},
},
beforeDestroy() {