From 4112779a8661fdd96a64b27591eba686857c61cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=97=AD=E6=B9=98?= <3423729430@qq.com> Date: Tue, 7 May 2024 10:21:09 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/utils/websocket.ts.=20websocket?= =?UTF-8?q?=E4=B8=AD=E4=BD=BF=E7=94=A8worker=E4=B8=AD=E5=B0=81=E8=A3=85?= =?UTF-8?q?=E7=9A=84=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 周旭湘 <3423729430@qq.com> --- src/utils/websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts index d4dd8a8..8dac3ab 100644 --- a/src/utils/websocket.ts +++ b/src/utils/websocket.ts @@ -77,7 +77,7 @@ export const resetHeart = () => { // socket心跳发送 export const sendSocketHeart = () => { - heartTime = setInterval(() => { + heartTime = (window as any).reliableSetInterval(() => { // 如果连接正常则发送心跳 if (websocket.readyState == 1) { // if (socketHeart <= 30) {