diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 25906405..fbeea216 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -159,9 +159,8 @@ export default { this.$store.dispatch('user/login', this.loginForm) .then(() => { this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) - this.loading = false }) - .catch(() => { + .finally(() => { this.loading = false }) } else {