Store_Vuex init...
This commit is contained in:
parent
b869515983
commit
17536ed937
@ -61,13 +61,9 @@ export default {
|
||||
methods: {
|
||||
redirect() {
|
||||
if (!this.isAuthenticated && this.$router.name != 'home') {
|
||||
this.$router
|
||||
.push({
|
||||
name: 'home'
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e + ':' + this.$router)
|
||||
})
|
||||
this.$router.push({ name: 'home' }).catch((e) => {
|
||||
console.log(e + ':' + this.$router)
|
||||
})
|
||||
}
|
||||
},
|
||||
logout() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user