Просмотр исходного кода

Merge branch 'develop/3.2.4' of http://60.205.190.38:9000/zhaoheqing/wxmini into develop/3.2.4

zeng.chen 7 месяцев назад
Родитель
Сommit
90e1e14175
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);