From 103535e70e3b5a15cf272139f4e10ca7085dcc62 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Tue, 12 Mar 2024 14:58:09 +0800 Subject: [PATCH] =?UTF-8?q?wss=E5=9C=B0=E5=9D=80?= 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 964ea251..1fafe36b 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://' + location.hostname + ':' + window.location.port || 80 + '/ws', + url: 'wss://' + location.hostname + ':' + window.location.port + '/ws' || 80 + '/ws', // url: "ws://10.7.179.15" + ":" + port + path, // url: "ws://10.168.64.171" + ":" + port + path, // url: 'ws://10.168.78.127'+ ':' + port + path,