websocket环境配置

main
zhangqun 2 years ago
parent 0f2b250ffd
commit 6722a780d6
  1. 2
      src/App.vue

@ -32,7 +32,7 @@ export default {
methods: { methods: {
initWebSocket(supplierId) { initWebSocket(supplierId) {
// WebSocketwshttpwsshttps // WebSocketwshttpwsshttps
let wsUrl = `ws://192.168.3.32:81/websocket/${supplierId}`; let wsUrl = `ws://171.16.8.51:81/websocket/${supplierId}`//`ws://192.168.3.32:81/websocket/${supplierId}`;
this.websocket = new WebSocket(wsUrl); this.websocket = new WebSocket(wsUrl);
this.websocket.onopen = this.websocketonopen; this.websocket.onopen = this.websocketonopen;
this.websocket.onerror = this.websocketonerror; this.websocket.onerror = this.websocketonerror;

Loading…
Cancel
Save