fix small bug
This commit is contained in:
parent
b7d7c21617
commit
011f04c196
@ -40,10 +40,10 @@ const LoginForm = {
|
|||||||
this.$store.commit('setToken', result.access_token)
|
this.$store.commit('setToken', result.access_token)
|
||||||
try {
|
try {
|
||||||
await this.$store.dispatch('loginUser', result.access_token)
|
await this.$store.dispatch('loginUser', result.access_token)
|
||||||
|
this.$router.push({name: 'friends'})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
this.$router.push({name: 'friends'})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user