This commit is contained in:
StyleZhang 2024-04-03 15:13:26 +08:00
parent ba3039d6c9
commit c3bb541a69
1 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,6 @@ import {
memo,
useCallback,
useEffect,
useLayoutEffect,
useMemo,
} from 'react'
import { setAutoFreeze } from 'immer'
@ -85,11 +84,11 @@ const Workflow: FC<WorkflowProps> = memo(({
}
}, [])
useLayoutEffect(() => {
return () => {
handleSyncWorkflowDraft(true)
}
}, [])
// useEffect(() => {
// return () => {
// handleSyncWorkflowDraft(true)
// }
// }, [])
const handleSyncWorkflowDraftWhenPageClose = useCallback(() => {
if (document.visibilityState === 'hidden')