Commit 62a841d3 authored by xxx's avatar xxx

1

parent eaaafae7
...@@ -235,8 +235,6 @@ export default { ...@@ -235,8 +235,6 @@ export default {
} }
} }
}) })
//WebSocket重连
//that.reconnectIndex();
}, 8000) }, 8000)
}, },
...@@ -268,10 +266,12 @@ export default { ...@@ -268,10 +266,12 @@ export default {
//WebSocket连接错误 //WebSocket连接错误
websocketonerrorIndex(e) { websocketonerrorIndex(e) {
console.log("9095WebSocket连接发生错误"); console.log("9095WebSocket连接发生错误");
//WebSocket重连
this.reconnectIndex();
}, },
//WebSocket数据接收 //WebSocket数据接收
websocketonmessageIndex(e){ websocketonmessageIndex(e){
console.log("indexWebsocketMessage",e); console.log("indexWebsocketMessage",e.data);
if(e == undefined){ if(e == undefined){
return return
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment