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);