瀏覽代碼

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