解决方案
form
替换为你的对象名,discount
替换为你undefined的字段名,initialValue是设置默认值,数字类型设置为0
,字符串类型设置为''
空字符串即可。
this.form.getFieldDecorator('discount', {initialValue: 0, preserve: true})
解决方案
form
替换为你的对象名,discount
替换为你undefined的字段名,initialValue是设置默认值,数字类型设置为0
,字符串类型设置为''
空字符串即可。
this.form.getFieldDecorator('discount', {initialValue: 0, preserve: true})