React + Antd 相关的报错警告

1、Warning: You cannot set a form field before rendering a field associated with the value. 原因:form表单中的属性没有在getFieldDecorator中注册就调用setFieldsValue导致的。 解决:去掉或者使用initialValue初始化参数。
相关文章
相关标签/搜索