Trivialized cookie and renamed a function

This commit is contained in:
Alexis
2020-08-03 22:28:14 +02:00
parent 117d174480
commit ee287d1722
2 changed files with 11 additions and 13 deletions

View File

@@ -45,11 +45,9 @@
},
methods: {
logoutUser() {
if (this.$cookies.get('U_') != null) {
this.$cookies.remove('U_')
this.$store.commit('logout')
this.$router.push('/')
}
this.$cookies.remove('U_')
this.$store.commit('logout')
this.$router.push('/')
}
}
}