From 95118d44dcfb2551ed8fc307ee938b331272e11f Mon Sep 17 00:00:00 2001 From: fanpeng <438123081@qq.com> Date: Fri, 11 Jul 2025 14:34:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=BC=BA=E8=93=9D=E7=89=99?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=80=BB=E8=BE=91=EF=BC=8C=E9=92=88=E5=AF=B9?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E5=B9=B3=E5=8F=B0=E6=B7=BB=E5=8A=A0=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E5=A4=84=E7=90=86=EF=BC=8C=E4=BC=98=E5=8C=96=E9=87=8D?= =?UTF-8?q?=E8=BF=9E=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stores/bluetooth.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/stores/bluetooth.js b/stores/bluetooth.js index a0f64e7..fd3a977 100644 --- a/stores/bluetooth.js +++ b/stores/bluetooth.js @@ -1041,12 +1041,20 @@ export const useBluetoothStore = defineStore('ble', { resolve(true) return } + // #ifdef MP if (res.errno === 1509001 && number < 1) { // 超时直接返回 resolve(false) return } - + // #endif + // #ifdef APP-PLUS + if (res.code === 10012 && number < 1) { + // 超时直接返回 + resolve(false) + return + } + // #endif if (number < 1) { // 重新连接 resolve(await that.connectBluetoothDevice(number + 1)) @@ -1440,7 +1448,7 @@ export const useBluetoothStore = defineStore('ble', { } }) }, - (i + 1) * 200 + (i + 1) * 250 ) // #endif