修复安卓设备回退toast无法显示bug

This commit is contained in:
范鹏 2024-08-29 17:58:41 +08:00
parent 053d14db47
commit 1cc09adb59
2 changed files with 9 additions and 9 deletions

View File

@ -622,9 +622,9 @@ export const useBluetoothStore = defineStore('ble', {
timer2 = setTimeout(() => { timer2 = setTimeout(() => {
setTimeout(() => { setTimeout(() => {
uni.stopBluetoothDevicesDiscovery() uni.stopBluetoothDevicesDiscovery()
clearInterval(timer) clearInterval(timer1)
}, 7000) }, 10000)
timer = setInterval(() => { timer1 = setInterval(() => {
uni.getBluetoothDevices({ uni.getBluetoothDevices({
success(res) { success(res) {
const deviceList = res.devices const deviceList = res.devices