直接刷新页面重载

This commit is contained in:
2023-10-01 00:08:28 +08:00
parent f82c1538f5
commit 56c9d2c8f5
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ export default class ClientList {
websocket.onclose = event => { websocket.onclose = event => {
console.log('WebSocket 断线重连...') console.log('WebSocket 断线重连...')
setTimeout(() => { setTimeout(() => {
this.websocket = linkStart() //this.websocket = linkStart()
// 调试模式: 直接刷新页面重载
window.location.reload()
}, 1000) }, 1000)
} }
return websocket return websocket