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