由于Proform是对Form的进一步封装,所以我们可以使用Form的form绑定去实现
首先引入
![](https://img-blog.csdnimg.cn/img_convert/088b70f905b20b677969f0cbd9ea8a48.png)
然后创建和连接表单
![](https://img-blog.csdnimg.cn/img_convert/475a14640645127112cc838b40bed18f.png)
![](https://img-blog.csdnimg.cn/img_convert/4f2597faa8b78ed0caba7b568950bc58.png)
最后创建刷新的方法
![](https://img-blog.csdnimg.cn/img_convert/3a738efecc84210272dd4202782dadbc.png)
方法内第一行即可实现表单刷新,第二行是赋初始值
使用setFieldsValue时不需要使用initialValue或者request来使表单接受数据
需要刷新的时候调用刷新的方法即可,但要注意使用不当会出现我上一篇文章的报错,具体可看https://blog.csdn.net/Ricale/article/details/128811375?spm=1001.2014.3001.5501