Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?
报错信息:
warning: Instance created by useForm is not connected to any Form element. Forget to pass form prop?
解决:
在Modal上加属性:
forceRender={true}
destroyOnClose={false}
参考链接: https://github.com/ant-design/ant-design/issues/21543
...
原创
2022-03-24 15:40:52 ·
1380 阅读 ·
0 评论