From 85e3f1f6c84082c4e4d2a1ec5af23ad64530aa1d Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Sun, 15 May 2022 17:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E8=AE=BE=E5=A4=87=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E7=9B=91=E6=B5=8B=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E6=B3=A8=E9=87=8A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/device/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vue/src/views/iot/device/index.vue b/vue/src/views/iot/device/index.vue index 972d41a9..a4727ccc 100644 --- a/vue/src/views/iot/device/index.vue +++ b/vue/src/views/iot/device/index.vue @@ -393,12 +393,12 @@ export default { // 订阅当前页面设备状态和实时监测 let topics = []; // 订阅数太多,会导致emqx连接中断或者订阅缓慢 - // for (let i = 0; i < list.length; i++) { - // let topicStatus = "/" + list[i].productId + "/" + list[i].serialNumber + "/status/post"; - // let topicMonitor = "/" + list[i].productId + "/" + list[i].serialNumber + "/monitor/post"; - // topics.push(topicStatus); - // topics.push(topicMonitor); - // } + for (let i = 0; i < list.length; i++) { + let topicStatus = "/" + list[i].productId + "/" + list[i].serialNumber + "/status/post"; + let topicMonitor = "/" + list[i].productId + "/" + list[i].serialNumber + "/monitor/post"; + topics.push(topicStatus); + topics.push(topicMonitor); + } this.subscribes = topics; }, /** 更新实时监测参数*/