Go to friends timeline on login.
This commit is contained in:
parent
500b704c0f
commit
a7ce51b4b0
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,9 @@ const LoginForm = {
|
|||
},
|
||||
methods: {
|
||||
submit () {
|
||||
this.$store.dispatch('loginUser', this.user)
|
||||
this.$store.dispatch('loginUser', this.user).then(() => {
|
||||
this.$router.push('/main/friends')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue