彭宇 2 anni fa
parent
commit
3b816ed940
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/views/forest.vue

+ 1 - 2
src/views/forest.vue

@@ -714,7 +714,7 @@
 		methods: {
 			/** ----------------------------------weosocket开始------------------------------------- */
       initWebSocket(){ //初始化weosocket
-        const wsuri = "wss://192.168.1.103:10012/websocket/admin";
+        const wsuri = "wss://www.hmzzxc.com:10012/websocket/admin";
         this.websock = new WebSocket(wsuri);
         console.log('建立websocket连接')
         this.websock.onopen = this.websocketonopen;
@@ -724,7 +724,6 @@
       },
       websocketonopen(){ //连接建立之后执行send方法发送数据
         this.sendPing()
-        alert("链接成功")
       },
       websocketonerror(){//连接建立失败重连
         this.initWebSocket();