Commit 18f321d0 authored by 李晓静's avatar 李晓静

代码优化

parent 24f3b8df
...@@ -123,12 +123,12 @@ class FormWrap extends Component { ...@@ -123,12 +123,12 @@ class FormWrap extends Component {
if (temp.length === 0) { if (temp.length === 0) {
temp = emptyModel; temp = emptyModel;
} }
if (!!item.requiredFlag && Array.isArray(newVal) && !newVal[0].value) {
return
}
if (_.isEqual(temp, newVal)) { if (_.isEqual(temp, newVal)) {
return; return;
} }
if (!!item.requiredFlag && !newVal[0].value) {
return
}
if (typeof onBlurFn === 'function') { if (typeof onBlurFn === 'function') {
onBlurFn(changedValue) onBlurFn(changedValue)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment