diff --git a/components/apolloTable/editFormV3/index.tsx b/components/apolloTable/editFormV3/index.tsx index 2fad045c1c60fddb37701478a328a721fd15889c..2b9779a1deb1cbb34e0f798fbae1fef6b233ad62 100644 --- a/components/apolloTable/editFormV3/index.tsx +++ b/components/apolloTable/editFormV3/index.tsx @@ -127,12 +127,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) }