Go to friends timeline on login.

このコミットが含まれているのは:
Roger Braun 2016-10-30 14:25:18 +01:00
コミット a7ce51b4b0
2個のファイルの変更4行の追加2行の削除

ファイルの表示

@ -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')
})
}
}
}

ファイルの表示

@ -21,7 +21,7 @@ const users = {
loginUser (store, userCredentials) {
const commit = store.commit
commit('beginLogin')
apiService.verifyCredentials(userCredentials)
return apiService.verifyCredentials(userCredentials)
.then((response) => {
if (response.ok) {
response.json()