mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Form): filter no name field's value (#11410)
This commit is contained in:
parent
f71336e256
commit
cd64c47259
@ -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;
|
||||
}, {});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user