Add logout button

This commit is contained in:
Pitu 2020-07-18 04:45:58 +09:00
parent 8ffa0ba075
commit 5e07436f0d
1 changed files with 7 additions and 1 deletions

View File

@ -45,6 +45,12 @@
exact>
Account
</router-link>
<router-link
to="/"
class="navbar-item no-active"
@click.native="logOut">
Logout
</router-link>
</template>
<template v-else>
<router-link
@ -79,7 +85,7 @@ export default {
},
methods: {
logOut() {
this.$emit('logout');
this.$store.dispatch('logout');
}
}
};