|
@@ -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();
|