diff --git a/components/apolloTable/editFormV3/index.tsx b/components/apolloTable/editFormV3/index.tsx index 44a74ac9ef3fef20651a4f3f4fca447284caf2ee..eb10eaace174d66cbd3913f7d996f082022a87d0 100644 --- a/components/apolloTable/editFormV3/index.tsx +++ b/components/apolloTable/editFormV3/index.tsx @@ -123,12 +123,12 @@ class FormWrap extends Component { if (temp.length === 0) { temp = emptyModel; } + if (!!item.requiredFlag && Array.isArray(newVal) && !newVal[0].value) { + return + } if (_.isEqual(temp, newVal)) { return; } - if (!!item.requiredFlag && !newVal[0].value) { - return - } if (typeof onBlurFn === 'function') { onBlurFn(changedValue) }