소스 검색

fix: 调整重连次数

wanggaokun 10 달 전
부모
커밋
5e149770f0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/utils/websocket.ts

+ 1 - 1
src/utils/websocket.ts

@@ -95,7 +95,7 @@ export const sendSocketHeart = () => {
 
 // socket重连
 export const reconnect = () => {
-  if (socketError <= 2) {
+  if (socketError <= 10) {
     clearInterval(heartTime)
     initWebSocket(socketUrl)
     socketError = socketError + 1