yusheng hace 11 meses
padre
commit
8faad7d4a3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);