From 6722a780d636b50e9fbb0ce48955018d558faf15 Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Thu, 21 Sep 2023 17:47:31 +0800 Subject: [PATCH] =?UTF-8?q?websocket=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 61b3f80..b71fb3a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,7 +32,7 @@ export default { methods: { initWebSocket(supplierId) { // WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https - 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.onopen = this.websocketonopen; this.websocket.onerror = this.websocketonerror;