Преглед изворни кода

feature:修改首页蓝牙的判断

zeng.chen пре 7 месеци
родитељ
комит
701d3bf1a4
1 измењених фајлова са 1 додато и 1 уклоњено
  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();