Преглед на файлове

移除IBP设备名称过滤

xiaohaizhao преди 7 месеца
родител
ревизия
0610fdba46
променени са 1 файла, в които са добавени 1 реда и са изтрити 6 реда
  1. 1 6
      Bluetooth/index/index.vue

+ 1 - 6
Bluetooth/index/index.vue

@@ -119,12 +119,7 @@ export default {
     startBluetooth(services = []) {
       let that = this;
       uni.onBluetoothDeviceFound(function ({ devices }) {
-        try {
-          if (devices[0].name.includes("IBP")) {
-            console.log("IBP开头的蓝牙设备", devices[0]);
-            that.devices = that.devices.concat(devices);
-          }
-        } catch (error) {}
+		that.devices = that.devices.concat(devices);
         that.empty = that.devices.length == 0;
       });
       uni.startBluetoothDevicesDiscovery({