You cannot set a form field before rendering a field associated with the value. You can use `getFieldDecorator(id, options)` instead `v-decorator="[id, options]"` to register it before render.

错误:

warning.js?d96e:34 Warning: You cannot set a form field before rendering a field associated with the value. You can use `getFieldDecorator(id, options)` instead `v-decorator="[id, options]"` to register it before render.

解决方法:

其实是调用 from.setFieldsValue() 的时候传入的key在view 里面不存在导致的

posted @ 2021-09-18 12:05  浅笑19  阅读(2626)  评论(0编辑  收藏  举报