Browse Source

:zap: 登录错误loading关闭

smallchill 7 năm trước cách đây
mục cha
commit
f44f648bc7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/page/login/userlogin.vue

+ 2 - 0
src/page/login/userlogin.vue

@@ -101,6 +101,8 @@ export default {
           this.$store.dispatch("LoginByUsername", this.loginForm).then(() => {
             this.$router.push({ path: this.tagWel.value });
             loading.close();
+          }).catch(() => {
+            loading.close()
           });
         }
       });