Explorar o código

fix: 调整重连次数

wanggaokun hai 10 meses
pai
achega
5e149770f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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