diff --git a/manifest.json b/manifest.json index 35562d9..e7753ea 100644 --- a/manifest.json +++ b/manifest.json @@ -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" }, diff --git a/stores/bluetooth.js b/stores/bluetooth.js index 33a66f1..98c72b1 100644 --- a/stores/bluetooth.js +++ b/stores/bluetooth.js @@ -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