直接刷新页面重载
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user