表单提交组件之间的校验
This commit is contained in:
@ -152,7 +152,11 @@ export default {
|
||||
this.value.industrys.splice(index, 1);
|
||||
},
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => valid);
|
||||
let flag = false;
|
||||
this.$refs["form"].validate((valid) => {
|
||||
flag = valid;
|
||||
});
|
||||
return flag;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
Reference in New Issue
Block a user