From f8f87af14901cd7d46de34df00d561ad79eacd64 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Fri, 15 Nov 2024 16:54:17 +0800 Subject: [PATCH] =?UTF-8?q?websocket=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/websocket.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue index 229e6766..4e22893c 100644 --- a/ruoyi-ui/src/views/websocket.vue +++ b/ruoyi-ui/src/views/websocket.vue @@ -31,7 +31,7 @@ export default { // 建立 websocket 连接 this.socket.initialize({ // url: 'ws://' + location.hostname + ':' + port + path, - url: 'wss://' + locatoin.hostname + ':' + window.location.port + '/ws' || 80 + '/ws', + url: 'wss://' + location.hostname + ':' + window.location.port + '/ws' || 80 + '/ws', // url: "ws://10.168.66.196:7789" + path, // url: 'ws://10.168.77.128:7789/ws', // url: "ws://10.7.179.15" + ":" + port + path,