fix: association-cascader should use fieldnames

This commit is contained in:
sealday 2024-03-25 18:25:55 +08:00
parent c5e0301e3d
commit 80a53806bd

View File

@ -36,7 +36,7 @@ const AssociationCascader = connect((props) => {
const options = Object.entries(dict).map(([key, values]) => ({
[fieldNames.label]: key,
[fieldNames.value]: key,
children: values.map((value) => ({ name: value, id: value })),
children: values.map((value) => ({ [fieldNames.label]: value, [fieldNames.value]: value })),
}));
return options;
}, [associationField, joinTitleField, titleField, data?.data]);