修复安卓设备回退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,
"minified" : true
},
"permission": {
"scope.bluetooth": {
"desc": "蓝牙将用于控制和管理您的智能门锁"
"permission" : {
"scope.bluetooth" : {
"desc" : "蓝牙将用于控制和管理您的智能门锁"
},
"scope.userLocation": {
"desc": "获取您的位置信息将用于智能门锁的位置服务"
"scope.userLocation" : {
"desc" : "获取您的位置信息将用于智能门锁的位置服务"
}
},
"requiredPrivateInfos": ["getLocation"],
"requiredPrivateInfos" : [ "getLocation" ],
"usingComponents" : true,
"lazyCodeLoading" : "requiredComponents"
},

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