|
|
@ -153,7 +153,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
initSocket ({ id, account }) { |
|
|
|
initSocket ({ id, account }) { |
|
|
|
// 实例化socket |
|
|
|
// 实例化socket |
|
|
|
this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://${Setting.isDev ? '192.168.31.51:9100' : location.host}/nakadai/websocket/${id}/${account}`) |
|
|
|
this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://www.occupationlab.com/nakadai/websocket/${id}/${account}`) |
|
|
|
// this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`) |
|
|
|
// this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`) |
|
|
|
// 监听socket连接 |
|
|
|
// 监听socket连接 |
|
|
|
this.socket.onopen = this.open; |
|
|
|
this.socket.onopen = this.open; |
|
|
|