From b7ed8afdf877f40a7e85f9abe2f26c2f56b10325 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 11 Oct 2021 22:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- public/components/frame/nav/nav.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 9b2c8b20f..acc505cf7 100755 --- a/app.js +++ b/app.js @@ -41,7 +41,7 @@ let opts = { app.use('/callComponent',proxy('http://proxy.homecommunity.cn:9011',opts)); app.use('/app',proxy('http://proxy.homecommunity.cn:9011',opts)); - +app.use('/ws',proxy('http://proxy.homecommunity.cn:9011',opts)); // app.use('/callComponent',proxy('http://192.168.1.106:8012',opts)); // app.use('/app',proxy('http://192.168.1.106:8012',opts)); diff --git a/public/components/frame/nav/nav.js b/public/components/frame/nav/nav.js index 221c1f4ec..b2c129f46 100755 --- a/public/components/frame/nav/nav.js +++ b/public/components/frame/nav/nav.js @@ -215,11 +215,11 @@ let url = ''; if (_protocol.startsWith('https')) { url = - "wss://" + window.location.host + "/app/message/" + + "wss://" + window.location.host + "/ws/message/" + _userId; } else { url = - "ws://" + window.location.host + "/app/message/" + + "ws://" + window.location.host + "/ws/message/" + _userId; }