yusheng 11 luni în urmă
părinte
comite
8faad7d4a3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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);