瀏覽代碼

移除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({