mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-29 20:29:46 +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 = () =>
|
const getValues = () =>
|
||||||
children.reduce<Record<string, unknown>>((form, field) => {
|
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;
|
return form;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user