wanggaokun 10 сар өмнө
parent
commit
5e149770f0

+ 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