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