瀏覽代碼

提交设备列表注释

wangming 1 周之前
父節點
當前提交
808f388090
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/pagesA/devices/devices.vue

+ 3 - 0
src/pagesA/devices/devices.vue

@@ -118,6 +118,7 @@ export default {
             const [hours, minutes] = timePart.split(":");
             return `${parseInt(month)}月${parseInt(day)}日${hours}:${minutes}`;
         },
+        // 查询列表
         queryList() {
             uni.showLoading({
                 title: "查询中...",
@@ -159,6 +160,8 @@ export default {
                     uni.hideLoading();
                 });
         },
+
+        // 订阅列表中所有设备的presence_change主题
         subscribePresenceChange(clientIdList) {
             // 遍历订阅
             if (clientIdList.length == 0) return;