|
@@ -355,12 +355,12 @@ const onSubmit = (formEl: FormInstance | undefined) => {
|
|
|
}
|
|
|
// 必填项的验证
|
|
|
if (['img', 'imgs'].indexOf(item.form_item_type_label) > -1) {
|
|
|
- for (const arr of item.rule) {
|
|
|
+ /* for (const arr of item.rule) {
|
|
|
if (arr.required && item.value === null) {
|
|
|
errorMessage(item.title + '不能为空');
|
|
|
return;
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
}
|
|
|
});
|