Browse Source

fix: 调整重连次数

wanggaokun 10 tháng trước cách đây
mục cha
commit
5e149770f0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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