mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 08:25:53 +08:00
还原设备实时监测代码,取消注释。
This commit is contained in:
@@ -393,12 +393,12 @@ export default {
|
|||||||
// 订阅当前页面设备状态和实时监测
|
// 订阅当前页面设备状态和实时监测
|
||||||
let topics = [];
|
let topics = [];
|
||||||
// 订阅数太多,会导致emqx连接中断或者订阅缓慢
|
// 订阅数太多,会导致emqx连接中断或者订阅缓慢
|
||||||
// for (let i = 0; i < list.length; i++) {
|
for (let i = 0; i < list.length; i++) {
|
||||||
// let topicStatus = "/" + list[i].productId + "/" + list[i].serialNumber + "/status/post";
|
let topicStatus = "/" + list[i].productId + "/" + list[i].serialNumber + "/status/post";
|
||||||
// let topicMonitor = "/" + list[i].productId + "/" + list[i].serialNumber + "/monitor/post";
|
let topicMonitor = "/" + list[i].productId + "/" + list[i].serialNumber + "/monitor/post";
|
||||||
// topics.push(topicStatus);
|
topics.push(topicStatus);
|
||||||
// topics.push(topicMonitor);
|
topics.push(topicMonitor);
|
||||||
// }
|
}
|
||||||
this.subscribes = topics;
|
this.subscribes = topics;
|
||||||
},
|
},
|
||||||
/** 更新实时监测参数*/
|
/** 更新实时监测参数*/
|
||||||
|
|||||||
Reference in New Issue
Block a user