From e44a2fe9fd0ba7c28f0eba9be26eb9cfc7a92241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9A=8F=E9=81=87=E8=80=8C=E5=AE=89?= <164770707@qq.com> Date: Sat, 16 Apr 2022 15:56:32 +0000 Subject: [PATCH] update vue/src/views/iot/device/mqtt-client.vue. --- 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 99324ff8..3b3dad70 100644 --- a/vue/src/views/iot/device/mqtt-client.vue +++ b/vue/src/views/iot/device/mqtt-client.vue @@ -50,8 +50,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) => {