From c6484593dfd67e4b3f0354cd2fe9b14d11b36a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=9D=B0?= Date: Wed, 26 Dec 2018 17:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E3=80=81?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E3=80=81=E6=9D=83=E9=99=90=E3=80=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=88=96=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99=E6=97=B6?= =?UTF-8?q?=E5=86=8D=E6=AC=A1=E6=B7=BB=E5=8A=A0=E5=90=8E=E5=85=B3=E8=81=94?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=87=8D=E5=A4=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/log/msg.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/monitor/log/msg.vue b/src/views/monitor/log/msg.vue index 2c93ec0..c35bd95 100644 --- a/src/views/monitor/log/msg.vue +++ b/src/views/monitor/log/msg.vue @@ -75,7 +75,8 @@ export default { }, connection(_this) { // 建立连接对象,注意部署到线上后也要修改对应的地址 - const socket = new SockJS('http://localhost:/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息 + // const socket = new SockJS('http://localhost:/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息 + const socket = new SockJS('http://localhost:8000/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息 // 获取STOMP子协议的客户端对象 this.stompClient = Stomp.over(socket) // 定义客户端的认证信息,按需求配置