Compare commits

..

No commits in common. "bd7568a159330b607993869f50d8c5481e069b0e" and "191dbfa23a54ceae21c12c46f705c71216b2a247" have entirely different histories.

1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@
onSubmit(evt) { onSubmit(evt) {
evt.preventDefault() evt.preventDefault()
this.$store.dispatch('login', {username: this.form.username, password: this.form.password}) this.$store.dispatch('login', {username: this.form.username, password: this.form.password})
.catch((err) => {
console.log(err)
})
.then(() => { .then(() => {
this.$cookies.set('key', this.$store.state.key) this.$cookies.set('key', this.$store.state.key)
if (!this.$route.params.returnTo) if (!this.$route.params.returnTo)