From 294be7eab53df379556897499f58aedf20267540 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Fri, 10 Mar 2023 14:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91websocket=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/tools/HeaderNotice.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jero-web/src/components/tools/HeaderNotice.vue b/jero-web/src/components/tools/HeaderNotice.vue index ed493a8c..601ed7b5 100644 --- a/jero-web/src/components/tools/HeaderNotice.vue +++ b/jero-web/src/components/tools/HeaderNotice.vue @@ -198,7 +198,7 @@ export default { initWebSocket: function () { // WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https const userId = store.getters.userInfo.id - const url = window._CONFIG.domianWebSocketURL.replace('https://', 'wss://').replace('http://', 'ws://') + '/websocket/' + userId + const url = window._CONFIG.domianWebSocketURL.replace('https://', 'wss://').replace('http://', 'ws://') + '/jero-boot/websocket/' + userId // console.log(url); this.websock = new WebSocket(url) this.websock.onopen = this.websocketOnopen