diff --git a/public/index.html b/public/index.html index 65c8b7bb..d7efce9a 100644 --- a/public/index.html +++ b/public/index.html @@ -33,7 +33,7 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% } %> diff --git a/src/views/main-sidebar.vue b/src/views/main-sidebar.vue index 7f737475..29c48ed0 100644 --- a/src/views/main-sidebar.vue +++ b/src/views/main-sidebar.vue @@ -91,7 +91,7 @@ export default { }, connection () { // 建立连接对象 - this.socket = new SockJS('http://192.168.15.174:9094/epdc/ws/menuNoticeEndpoint')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息,注意这里用的是http而不是原生WebSocket的ws + this.socket = new SockJS('http://219.146.91.110:9094/epdc-api/ws/menuNoticeEndpoint')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息,注意这里用的是http而不是原生WebSocket的ws // 获取STOMP子协议的客户端对象 this.stompClient = Stomp.over(this.socket)