1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

perf: Login finally loading false.

This commit is contained in:
Edwin Betancourt 2021-02-06 19:22:34 -04:00 committed by GitHub
parent 33a93a12b4
commit 2ec42428fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,9 +159,8 @@ export default {
this.$store.dispatch('user/login', this.loginForm) this.$store.dispatch('user/login', this.loginForm)
.then(() => { .then(() => {
this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
this.loading = false
}) })
.catch(() => { .finally(() => {
this.loading = false this.loading = false
}) })
} else { } else {