Commit 08d999a1 by zhaochengxiang

bug fix

parent eb41407f
......@@ -70,13 +70,13 @@ const EditModel = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
useMount(() => {
window?.addEventListener('beforeunload', confirmQuit);
})
// useMount(() => {
// window?.addEventListener('beforeunload', confirmQuit);
// })
useUnmount(() => {
window?.removeEventListener('beforeunload', confirmQuit);
})
// useUnmount(() => {
// window?.removeEventListener('beforeunload', confirmQuit);
// })
const heartbeat = () => {
dispatchLatest({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment