Преглед изворни кода

feature: 处理在线设备问题

Damon пре 7 месеци
родитељ
комит
2fcd66e0d6
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      pages/index/index.js

+ 3 - 0
pages/index/index.js

@@ -982,6 +982,9 @@ Page({
 
     var that = this;
     var finalList = [];
+    if (isInit) {
+      deviceList[0].state = "offline";
+    }
     finalList.push(deviceList[0]);
     console.log("online", deviceList[0].deviceId, deviceList[0].state);