ant design from 初始化无效

useEffect(() => form.resetFields(), [initialValues])

  

I had the same problem, sometimes the initialValues are empty, and I need to fetch the initialValues form a remote server.

I've fixed it in this way

 

 
posted @ 2021-01-31 11:01  winyh  阅读(259)  评论(0编辑  收藏  举报