yusheng пре 11 месеци
родитељ
комит
8faad7d4a3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/layout/components/header-notice.vue

+ 2 - 2
src/layout/components/header-notice.vue

@@ -219,9 +219,9 @@
       // });
 
       if (getToken()) {
+        console.log(window)
         let url =
-          'ws://' +
-          'aiot.zoomwin.com.cn:51001' +
+          'ws://' +window.location.host +
           '/ws/websocket/UnreadNotifyMessageCount?token=' +
           getToken();
         let socket = new WebSocket(url);