Commit 08d999a1 by zhaochengxiang

bug fix

parent eb41407f
...@@ -70,13 +70,13 @@ const EditModel = (props) => { ...@@ -70,13 +70,13 @@ const EditModel = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, []) }, [])
useMount(() => { // useMount(() => {
window?.addEventListener('beforeunload', confirmQuit); // window?.addEventListener('beforeunload', confirmQuit);
}) // })
useUnmount(() => { // useUnmount(() => {
window?.removeEventListener('beforeunload', confirmQuit); // window?.removeEventListener('beforeunload', confirmQuit);
}) // })
const heartbeat = () => { const heartbeat = () => {
dispatchLatest({ 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