Browse Source

feature: 解决报错问题

Damon 7 months ago
parent
commit
90bc142667
2 changed files with 2 additions and 1 deletions
  1. 1 1
      pages/deviceConnect3/deviceConnect3.js
  2. 1 0
      pages/index/index.js

+ 1 - 1
pages/deviceConnect3/deviceConnect3.js

@@ -186,7 +186,7 @@ Page({
 
   goIndex() {
     //  BLUFI_7cdfa1fd3cfc
-    app.globalData.newDeviceId = this.data.name;
+    app.globalData.newDeviceId = this.data.name;
     route_util.goBackRoute(route_constant.indexRoot);
   }
 })

+ 1 - 0
pages/index/index.js

@@ -803,6 +803,7 @@ Page({
 
   /// 断开连接wifi
   async cancelWifi(index) {
+    var that = this;
     const id = that.data.deviceList[index].deviceId;
     let name = that.data.deviceListIndex !== null ? that.data.deviceList[that.data.deviceListIndex].name : null;