weirenchun 1 年之前
父节点
当前提交
599c322407
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/home/components/center.vue

+ 2 - 1
src/views/home/components/center.vue

@@ -113,7 +113,8 @@ export default {
     },
     initWebSocket() {
       // const wsuri = 'ws://127.0.0.1:18200/websocket/bigData001'
-      const wsuri = 'ws://bizdata.wutongshucloud.com/bigws/websocket/bigData001'
+      const wsuri =
+        'wss://bizdata.wutongshucloud.com/bigws/websocket/bigData001'
       this.websock = new WebSocket(wsuri)
       this.websock.onmessage = this.websocketonmessage
       // 连接建立时触发