Parcourir la source

feature: 处理当前界面定位到首页

Damon il y a 8 mois
Parent
commit
74ce38dcd8
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      pages/index/index.js

+ 7 - 0
pages/index/index.js

@@ -795,6 +795,13 @@ Page({
   },
 
   addConnectDevice(connectDevice) {
+    var that = this;
+    var indexPage = that.data.indexPage;
+    if (indexPage != 0) {
+      that.setData({
+        indexPage: 0,
+      });
+    }
     console.log("dfadsfasdfasdfa==111==" + JSON.stringify(connectDevice))
   },