ant-design/components/modal/demo/confirm-router.md

8 lines
342 B
Markdown
Raw Normal View History

## zh-CN
使用 `Modal.destroyAll()` 可以销毁弹出的确认窗。通常用于路由监听当中,处理路由前进、后退不能销毁确认对话框的问题。
## en-US
2019-04-19 22:06:38 +08:00
`Modal.destroyAll()` will destroy all confirmation modal dialogs. Usually, you can use it in router change event to destroy confirm modal dialog automatically.