Trivialized cookie and renamed a function
This commit is contained in:
@@ -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('/')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user