From dd160cab177e3da70046820d2b64c534ac50dd21 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sun, 23 Jan 2022 22:37:56 +0000 Subject: [PATCH] Convert logout link to method --- web/src/App.vue | 7 ++++++- web/src/router/routes.js | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/App.vue b/web/src/App.vue index d5c9bdb..9f7b9eb 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -7,6 +7,11 @@ export default { return this.$store.state.Session.Token; } }, + methods: { + logout () { + this.$store.dispatch("logout"); + } + }, beforeCreate () { this.$store.commit("initializeStore"); } @@ -16,7 +21,7 @@ export default {