fix(Form): filter no name field's value (#11410)

This commit is contained in:
Jungzl 2022-12-23 18:13:10 +08:00 committed by GitHub
parent f71336e256
commit cd64c47259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,9 @@ export default defineComponent({
const getValues = () =>
children.reduce<Record<string, unknown>>((form, field) => {
form[field.name] = field.formValue.value;
if (field.name !== undefined) {
form[field.name] = field.formValue.value;
}
return form;
}, {});