【发布时间】:2020-10-05 17:46:58
【问题描述】:
我正在尝试使用 setFieldsValue 在表单中填写值。虽然我初始化了 form.ref,但我不能使用 this.formRef.current.setFieldsValue 为字段设置值。我收到此错误 Unhandled Rejection (TypeError): Cannot read property 'setFieldsValue' of null。我该如何解决?
【问题讨论】:
-
请添加更多信息或可重现的示例。