This commit is contained in:
gtz 2023-12-29 17:57:29 +08:00
parent ebb8d3f184
commit 91526eb847
3 changed files with 8 additions and 8 deletions

View File

@ -397,7 +397,7 @@ export default {
// const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG'
let date = new Date().valueOf()
console.log(date);
const SJGWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=COLD${date}`
const SJGWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=COLD${date}`
this.SJGWebsocket = new WebSocket(SJGWsUrl)
// WebSocket
this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen
@ -407,7 +407,7 @@ export default {
this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage
// webSocket
this.SJGWebsocket.onclose = this.SJGWebsocketClose
const cutWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=CUTTING${date}`
const cutWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=CUTTING${date}`
this.cutWebsocket = new WebSocket(cutWsUrl)
// WebSocket
@ -418,7 +418,7 @@ export default {
this.cutWebsocket.onmessage = this.cutWebsocketOnMessage
// webSocket
this.cutWebsocket.onclose = this.cutWebsocketClose
const funWsUrl = `ws://10.70.180.10:8081/xc-screen/websocket/${date}`
const funWsUrl = `ws://10.70.2.2:8080/xc-screen/websocket/${date}`
this.funWebsocket = new WebSocket(funWsUrl)
// WebSocket
this.funWebsocket.onopen = this.funWebsocketOnOpen
@ -428,7 +428,7 @@ export default {
this.funWebsocket.onmessage = this.funWebsocketOnMessage
// webSocket
this.funWebsocket.onclose = this.funWebsocketClose
// const wsUrl = 'ws://192.168.0.33:48082/websocket/message?userId=EN111'
// const wsUrl = 'ws://10.70.2.2:8080/websocket/message?userId=EN111'
// WebSocket
// this.websocket = new WebSocket(wsUrl)
// // WebSocket

View File

@ -636,11 +636,11 @@ export default {
if (typeof (WebSocket) === 'undefined') {
alert('您的浏览器不支持WebSocket')
} else {
const wsUrl = `ws://192.168.0.33:48082/websocket/message?userId=EN${date}`
const wsUrl = `ws://10.70.2.2:8080/websocket/message?userId=EN${date}`
// const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG'
let date = new Date().valueOf()
console.log(date);
const SJGWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=SJG${date}`
const SJGWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=SJG${date}`
this.SJGWebsocket = new WebSocket(SJGWsUrl)
// WebSocket
this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen
@ -650,7 +650,7 @@ export default {
this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage
// webSocket
this.SJGWebsocket.onclose = this.SJGWebsocketClose
// const wsUrl = 'ws://192.168.0.33:48082/websocket/message?userId=EN111'
// const wsUrl = 'ws://10.70.2.2:8080/websocket/message?userId=EN111'
// WebSocket
this.websocket = new WebSocket(wsUrl)
// WebSocket

View File

@ -82,7 +82,7 @@ export default {
// this.getMes()
// closeWebsocket()
getDcsMsg()
// getMesMsg()
getMesMsg()
console.log('mounted...........')
},
destroyed() {