diff --git a/stores/bluetooth.js b/stores/bluetooth.js index 48fad3c..2326d31 100644 --- a/stores/bluetooth.js +++ b/stores/bluetooth.js @@ -150,7 +150,7 @@ export const useBluetoothStore = defineStore('ble', { showCancel: false, confirmText: '确定', }) - } else if(this.bluetoothStatus === 2) { + } else if(this.bluetoothStatus === 2 || this.bluetoothStatus === 3) { uni.showModal({ title: '提示', content: '小程序蓝牙功能被禁用,请打开小程序蓝牙权限', @@ -162,13 +162,6 @@ export const useBluetoothStore = defineStore('ble', { } } }) - } else if(this.bluetoothStatus === 3) { - uni.showModal({ - title: '提示', - content: '蓝牙尚未打开且小程序蓝牙功能被禁用,请先打开蓝牙并打开小程序蓝牙权限', - showCancel: false, - confirmText: '确定', - }) } }, // 检查小程序设置