diff --git a/src/utils/wsClass.js b/src/utils/wsClass.js index d886feb..fc17f99 100644 --- a/src/utils/wsClass.js +++ b/src/utils/wsClass.js @@ -31,8 +31,7 @@ function handleError(err) { function handleClose(data) { console.log('[x] 服务器关闭连接') setTimeout(() => { - const wsc = new WsClient(data); - wsc.registerListeners(); + location.reload() }, 30000) }