diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/login_form/login_form.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js index 827c704c..b55f770f 100644 --- a/src/components/login_form/login_form.js +++ b/src/components/login_form/login_form.js @@ -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') + }) } } } |
