lanjianrong 3 years ago
parent
commit
5bc81986e5
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/hooks/core/useWebSocketFn.ts

+ 0 - 1
src/hooks/core/useWebSocketFn.ts

@@ -36,7 +36,6 @@ export default function useWebSocketFn() {
       connect()
     }
     return () => {
-      window.removeEventListener('beforeunload', () => {})
       disconnect()
     }
   }, [])