lanjianrong 3 năm trước cách đây
mục cha
commit
5bc81986e5
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  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()
     }
   }, [])