소스 검색

fix:注册按钮点击无效BUG修复

zhanghui 1 년 전
부모
커밋
f3145cf793
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      pages/register/register.vue

+ 6 - 0
pages/register/register.vue

@@ -326,6 +326,8 @@
 
                 this.$refs.uForm.validate().then(res => {
 
+                    console.log('验证不通过!!!!')
+
                     this.idCardAndName().then(res => {
                         if (res.data.data.respCode !== '0000') {
 
@@ -363,8 +365,12 @@
                                 this.requestStatus = false
                             })
                         }
+                    }).finally((res)=>{
+                        console.log('改为false')
+                        this.requestStatus = false
                     })
                 }).catch(err => {
+
                     this.requestStatus = false
                 })
             },