Ver Fonte

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

zhanghui há 1 ano atrás
pai
commit
f3145cf793
1 ficheiros alterados com 6 adições e 0 exclusões
  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
                 })
             },