From 975f111e1f5d1fb403e5dfcbd14bba275fbe1163 Mon Sep 17 00:00:00 2001 From: liuchuang Date: Tue, 5 Nov 2019 10:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 ---- src/views/main-sidebar.vue | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index f00c2ce4..1fb45501 100644 --- a/public/index.html +++ b/public/index.html @@ -34,28 +34,24 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% } %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %> <% } %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %> <% } %> <% if (process.env.VUE_APP_NODE_ENV === 'prod') { %> <% } %> diff --git a/src/views/main-sidebar.vue b/src/views/main-sidebar.vue index 551cb5aa..3beb7762 100644 --- a/src/views/main-sidebar.vue +++ b/src/views/main-sidebar.vue @@ -101,7 +101,7 @@ export default { }, connection () { // 建立连接对象 - let socketUrl = window.SITE_CONFIG['socketURL'] + '/ws/menuNoticeEndpoint' + let socketUrl = window.SITE_CONFIG['apiURL'] + '/ws/menuNoticeEndpoint' this.socket = new SockJS(socketUrl)// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息,注意这里用的是http而不是原生WebSocket的ws // 获取STOMP子协议的客户端对象