From 313825f9d42950e5a795ea7f46d0a50571a39bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Wed, 14 Aug 2024 15:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=93=9D=E7=89=99=E5=A4=84?= =?UTF-8?q?=E4=BA=8E=E5=BC=82=E5=B8=B8=E7=8A=B6=E6=80=81=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stores/bluetooth.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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: '确定', - }) } }, // 检查小程序设置