Browse Source

feature:修改首页蓝牙的判断

zeng.chen 7 tháng trước cách đây
mục cha
commit
701d3bf1a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 => {
     let hasBle = that.data.deviceList.find(item => {
       return item.connectType == 1;
       return item.connectType == 1;
     })
     })
-    if (!hasBle) {
+    if (hasBle) {
       ///监听蓝牙设备
       ///监听蓝牙设备
       BtHelper.getInstance().initBluetoothAdapter();
       BtHelper.getInstance().initBluetoothAdapter();
       BtHelper.getInstance().getBluetoothDevices();
       BtHelper.getInstance().getBluetoothDevices();