From 6b759faeb964b36ade2d24325031fcae0c9cf3e7 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Thu, 14 Apr 2022 00:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=89=8D=E7=AB=AF=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/device/mqtt-client.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue/src/views/iot/device/mqtt-client.vue b/vue/src/views/iot/device/mqtt-client.vue index 745e0e4a..79ebc271 100644 --- a/vue/src/views/iot/device/mqtt-client.vue +++ b/vue/src/views/iot/device/mqtt-client.vue @@ -53,8 +53,8 @@ export default { connectTimeout: 60000 } // 配置Mqtt地址 - let url = "wss://iot.wumei.live/mqtt" - // let url = "ws://" + window.location.hostname + ":8083/mqtt"; + // let url = "wss://iot.wumei.live/mqtt" + let url = "ws://" + window.location.hostname + ":8083/mqtt"; console.log("mqtt地址:", url); this.client = mqtt.connect(url, options); this.client.on("connect", (e) => {