直接刷新页面重载
This commit is contained in:
parent
f82c1538f5
commit
56c9d2c8f5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue