fix(client): update only fields in the form

This commit is contained in:
chenos 2022-06-23 15:54:07 +08:00
parent 9314bcd9f2
commit 4481109b1e

View File

@ -70,11 +70,11 @@ function getFormValues(filterByTk, field, form, fieldNames, getField, resource)
if (fieldNames.includes(key)) {
const collectionField = getField(key);
if (filterByTk) {
if (['subTable', 'o2m'].includes(collectionField.interface)) {
values[key] = form.values[key];
if (field.added && !field.added.has(key)) {
continue;
}
if (field.added && !field.added.has(key)) {
if (['subTable', 'o2m'].includes(collectionField.interface)) {
values[key] = form.values[key];
continue;
}
}