소스 검색

:zap: 登录错误loading关闭

smallchill 7 년 전
부모
커밋
f44f648bc7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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()
           });
         }
       });