Created
December 4, 2017 11:05
-
-
Save vouill/5a37ea3f627cba8380ccc57b2810a648 to your computer and use it in GitHub Desktop.
logout method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods: { | |
logout: function () { | |
this.$store.dispatch(AUTH_LOGOUT) | |
.then(() => { | |
this.$router.push('/login') | |
}) | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment