From 0349a4ad4a576ef4b1b850c6cca22d61a2f94e0d Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 6 Sep 2018 20:01:03 +0200 Subject: [PATCH] Added logout button --- src/components/Home.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index a7b4ad5890..9a9cb558f0 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -1,7 +1,9 @@ @@ -22,6 +24,11 @@ router.push({name: 'login'}) } }, + methods: { + logout () { + auth.logout() + } + }, }