const { getFieldDecorator } = this.props.form getFieldDecorator報錯“Cannot read property 'getFieldDecorator' of undefined”


我們會直接

const { getFieldDecorator } = this.props.form

直接使用getFieldDecorator 會報錯“Cannot read property 'getFieldDecorator' of undefined”

后來查找看了下原因為“使用getFieldDecorator需要導出form組件

export default Form.create();

於是就ojbk了

{我的是OK了,你的不OK,自己再找找原因吧,拜拜~}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM