我们会直接

const { getFieldDecorator } = this.props.form

直接使用getFieldDecorator 会报错“Cannot read property 'getFieldDecorator' of undefined”

后来查找看了下原因为“使用getFieldDecorator需要导出form组件

export default Form.create();

于是就ojbk了

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案