Procházet zdrojové kódy

feature:修改首页蓝牙的判断

zeng.chen před 7 měsíci
rodič
revize
701d3bf1a4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pages/index/index.js

+ 1 - 1
pages/index/index.js

@@ -161,7 +161,7 @@ Page({
     let hasBle = that.data.deviceList.find(item => {
       return item.connectType == 1;
     })
-    if (!hasBle) {
+    if (hasBle) {
       ///监听蓝牙设备
       BtHelper.getInstance().initBluetoothAdapter();
       BtHelper.getInstance().getBluetoothDevices();