Explorar o código

feature: 删除无用打印方式

Damon hai 7 meses
pai
achega
bfc89c30f8
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  1. 1 8
      pages/index/index.js

+ 1 - 8
pages/index/index.js

@@ -121,7 +121,7 @@ Page({
               that.addConnectBlueDevice(connectDevice);
             }
           })
-        } else { }
+        } else {}
       })
     }
   },
@@ -130,7 +130,6 @@ Page({
     var that = this;
     // BtHelper.getInstance().initBluetoothAdapter();
     var l = wx.getStorageSync("deviceList") || "";
-    console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
     if (!strings.isEmpty(l)) {
       try {
         var list = JSON.parse(l);
@@ -822,8 +821,6 @@ Page({
       return id !== item.deviceId
     });
     wx.setStorageSync("deviceList", JSON.stringify(deviceList));
-    var l = wx.getStorageSync("deviceList") || "";
-    console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
     that.setData({
       deviceList,
     });
@@ -850,8 +847,6 @@ Page({
       return id !== item.deviceId
     });
     wx.setStorageSync("deviceList", JSON.stringify(deviceList));
-    var l = wx.getStorageSync("deviceList") || "";
-    console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
     that.setData({
       deviceList,
       thisDeviceMac: null
@@ -1043,8 +1038,6 @@ Page({
     finalList = finalList.concat(onNoLineBlueList);
     // 更新缓存
     wx.setStorageSync("deviceList", JSON.stringify(finalList));
-    var l = wx.getStorageSync("deviceList") || "";
-    console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
     that.setData({
       deviceList: finalList
     });