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,自己再找找原因吧,拜拜~}

posted @ 2020-09-08 15:40  超级玛丽和大力水手  阅读(1635)  评论(0编辑  收藏  举报