修复安卓设备回退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

@ -12,15 +12,15 @@
"urlCheck" : true, "urlCheck" : true,
"minified" : true "minified" : true
}, },
"permission": { "permission" : {
"scope.bluetooth": { "scope.bluetooth" : {
"desc": "蓝牙将用于控制和管理您的智能门锁" "desc" : "蓝牙将用于控制和管理您的智能门锁"
}, },
"scope.userLocation": { "scope.userLocation" : {
"desc": "获取您的位置信息将用于智能门锁的位置服务" "desc" : "获取您的位置信息将用于智能门锁的位置服务"
} }
}, },
"requiredPrivateInfos": ["getLocation"], "requiredPrivateInfos" : [ "getLocation" ],
"usingComponents" : true, "usingComponents" : true,
"lazyCodeLoading" : "requiredComponents" "lazyCodeLoading" : "requiredComponents"
}, },

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