From 2ec42428fda0f05d886179b37c34c63e1323cc5d Mon Sep 17 00:00:00 2001 From: Edwin Betancourt Date: Sat, 6 Feb 2021 19:22:34 -0400 Subject: [PATCH] perf: Login finally loading false. --- src/views/login/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {