|
|
|
|
@ -173,8 +173,8 @@ export default { |
|
|
|
|
pos: 0, |
|
|
|
|
height: 5350, |
|
|
|
|
offsetZ: 250, |
|
|
|
|
// path: "ws://192.168.1.106/blade-datamqtt/ws", |
|
|
|
|
path: "ws://10.90.100.204/blade-datamqtt/ws", |
|
|
|
|
path: "ws://192.168.1.3/blade-websocket/ws?lift", |
|
|
|
|
// path: "ws://10.90.100.204/blade-websocket/ws?lift", |
|
|
|
|
socket: "", |
|
|
|
|
arr: [], //电梯信息 |
|
|
|
|
listData: [], |
|
|
|
|
@ -312,6 +312,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
if (this.socket) { |
|
|
|
|
console.log('close scoket'); |
|
|
|
|
this.socket.close(); |
|
|
|
|
this.socket = ""; |
|
|
|
|
} |
|
|
|
|
@ -320,6 +321,7 @@ export default { |
|
|
|
|
destroyed() { |
|
|
|
|
// 销毁监听 |
|
|
|
|
if (this.socket) { |
|
|
|
|
console.log('close scoket'); |
|
|
|
|
this.socket.close(); |
|
|
|
|
this.socket = ""; |
|
|
|
|
} |
|
|
|
|
|