先来一波报错

_this.props is undefined
You cannot set a form field before rendering a field associated with the value.

统一解决办法为:

异步0秒解决

setTimeout(() => {
  this.form.setFieldsValue({
     'screeningNo': '123'
   })
 }, 0)
Logo

前往低代码交流专区

更多推荐