Browse Source

段落必填验证

zhouna 6 years ago
parent
commit
5f45d604b8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/components/icss/AddMedicinePrompt.vue

+ 3 - 3
src/components/icss/AddMedicinePrompt.vue

@@ -176,14 +176,14 @@
           }
         });
         //验证段落表单
-        for(let i=0;i<this.$refs.subForm.length;i++){
-          it=this.$refs.subForm[i];
+        //for(let i=0;i<this.$refs.subForm.length;i++){
+          it=this.$refs.subForm;
           it.$refs.form.validate((valid) =>{
             if(!valid){
               goOn = false;
             }
           });
-        };
+        //};
 
         if(!goOn){
           return;