yusheng há 11 meses atrás
pai
commit
8faad7d4a3
1 ficheiros alterados com 2 adições e 2 exclusões
  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);