React + Antd 相關的報錯警告

1、Warning: You cannot set a form field before rendering a field associated with the value. 原因:form表單中的屬性沒有在getFieldDecorator中註冊就調用setFieldsValue導致的。 解決:去掉或者使用initialValue初始化參數。
相關文章
相關標籤/搜索