需要注意以下几点:
1.Drawer 设置destroyOnClose={true}
2.Form 设置 preserve={false}
3. Form为 Drawer的直接子元素,不能被其他元素如div包裹
AntD的 Drawer 和 Modal 关闭后页面无法销毁的问题
于 2022-07-19 13:23:50 首次发布
需要注意以下几点:
1.Drawer 设置destroyOnClose={true}
2.Form 设置 preserve={false}
3. Form为 Drawer的直接子元素,不能被其他元素如div包裹