소스 검색

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);