fix small bug

This commit is contained in:
jasper 2019-04-09 09:19:48 -07:00
parent b7d7c21617
commit 011f04c196

View File

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