修复安卓设备回退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(() => {
setTimeout(() => {
uni.stopBluetoothDevicesDiscovery()
clearInterval(timer)
}, 7000)
timer = setInterval(() => {
clearInterval(timer1)
}, 10000)
timer1 = setInterval(() => {
uni.getBluetoothDevices({
success(res) {
const deviceList = res.devices