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子协议的客户端对象