From a686dfad84e8023d9e40b1e0a25fea974b00259a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Tue, 3 Sep 2024 11:56:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=93=8D=E4=BD=9C=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=97=B6=E6=B7=BB=E5=8A=A0=E5=AE=9A=E4=BD=8D=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stores/bluetooth.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/stores/bluetooth.js b/stores/bluetooth.js index d611fc5..89ae20d 100644 --- a/stores/bluetooth.js +++ b/stores/bluetooth.js @@ -772,6 +772,22 @@ export const useBluetoothStore = defineStore('ble', { // 重新初始化蓝牙适配器 await that.initBluetooth() that.searchAndConnectDevice() + } else if(res.errno === 1509008) { + uni.showModal({ + title: '提示', + content: '安卓手机蓝牙功能需要定位权限,请前往设置开启微信的定位权限后再试', + showCancel: false, + success(res) { + if (res.confirm) { + uni.openAppAuthorizeSetting({ + success (res) { + console.log(res) + } + }) + } + } + }) + resolve(false) } else { resolve(false) }