From bc53844c7b9bab68b43c1fa270a0c2b706ba94e7 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 20 Apr 2021 12:12:38 +0200 Subject: [PATCH] commit lohout to store before redirect --- frontend/src/components/SidebarPlugin/SideBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index c1aca6b12..7b0831382 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -132,8 +132,8 @@ export default { this.$sidebar.displaySidebar(true) }, logout() { - this.$router.push('/login') this.$store.dispatch('logout') + this.$router.push('/login') }, }, beforeDestroy() {