fix: association select should not clearing after config data scope (#2984)

This commit is contained in:
katherinehhh 2023-11-07 16:05:59 +08:00 committed by GitHub
parent 2747e7640f
commit ee3d5af04d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,8 +70,8 @@ const InternalAssociationSelect = observer((props: AssociationSelectProps) => {
//支持深层次子表单 //支持深层次子表单
onFieldChange('*', (fieldPath: any) => { onFieldChange('*', (fieldPath: any) => {
if (linkageFields.includes(fieldPath.props.name) && field.value) { if (linkageFields.includes(fieldPath.props.name) && field.value) {
props.onChange(null); props.onChange(field.initialValue);
setInnerValue(null); setInnerValue(field.initialValue);
} }
}); });
} }