Skip to content
Snippets Groups Projects
Commit 2c591b5f authored by Dichi13's avatar Dichi13
Browse files

added functionality to log out

parent 6d73fee1
Branches
3 merge requests!18Asik asik,!17Merge feature-visualisasi into develop,!12Feature login functionality
Pipeline #12539 canceled with stage
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
logOut() { logOut() {
this.$cookie.set('token', ""); this.$cookie.set('token', "");
this.$store.commit('resetUser') this.$store.commit('clearUser')
this.$router.push({name: 'LandingPage'}); this.$router.push({name: 'LandingPage'});
} }
}, },
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment