Commit b8e9aa0a authored by 耿迪迪's avatar 耿迪迪

socket 配置修改 gengdidi

parent 9bed3bc3
...@@ -584,12 +584,12 @@ export default { ...@@ -584,12 +584,12 @@ export default {
}, },
socket() { socket() {
console.log("socket执行"); console.log("socket执行");
// this.ws = new WebSocket(
// "ws://36.148.23.59:8901/gassafety/websocketServer"
// );
this.ws = new WebSocket( this.ws = new WebSocket(
"ws://192.168.2.23:8903/gassafety/websocketServer" "ws://36.148.23.59:8901/gassafety/websocketServer"
); );
// this.ws = new WebSocket(
// "ws://192.168.2.23:8903/gassafety/websocketServer"
// );
this.ws.onopen = (evt) => { this.ws.onopen = (evt) => {
console.log("WebSockets=======gogogog"); console.log("WebSockets=======gogogog");
// this.ws.send("WebSockets!========================="); // this.ws.send("WebSockets!=========================");
...@@ -941,7 +941,7 @@ export default { ...@@ -941,7 +941,7 @@ export default {
// 如果为空,就直接把item.list写成[]; // 如果为空,就直接把item.list写成[];
item.list=[]; item.list=[];
} }
}); });
}, },
pageBack(item) { pageBack(item) {
......
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