diff --git a/src/components/Form/src/helper/index.ts b/src/components/Form/src/helper/index.ts index dc5258947..a0d9b24a9 100644 --- a/src/components/Form/src/helper/index.ts +++ b/src/components/Form/src/helper/index.ts @@ -161,7 +161,7 @@ export const initModel = (schema: FormSchema[], formModel: Recordable) => { // 如果 schema 对应的 field 不存在,则删除 model 中的对应的 field for (let i = 0; i < schema.length; i++) { const key = schema[i].field - if (!get(model, key)) { + if (!get(model, key)&&get(model, key)!==0) { delete model[key] } }