From 56c9d2c8f576b1235394b27019713cf227685a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Sun, 1 Oct 2023 00:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=88=B7=E6=96=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=87=8D=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/client.js b/public/client.js index 93e9fa4..26b6ca7 100644 --- a/public/client.js +++ b/public/client.js @@ -105,7 +105,9 @@ export default class ClientList { websocket.onclose = event => { console.log('WebSocket 断线重连...') setTimeout(() => { - this.websocket = linkStart() + //this.websocket = linkStart() + // 调试模式: 直接刷新页面重载 + window.location.reload() }, 1000) } return websocket