React form echo problem

Click to enter the details page and request the details, but you cannot use form.setFieldsValue () to set the form value in render (). How to set the form form data

May.10,2021

initialValue

clipboard.png


should have default values from the very beginning. Look at the antd/form form you are using. In fact, all you need is in the getfielddecorator wrapper function, and the second parameter {initialValue:''} or {value:''} can be echoed. The key is to be able to get detailed data and get the data you should have, and everything will be OK

.
Menu