1. 解决重复进入搜索页面,上次设备未清除bug
This commit is contained in:
parent
bbbbc9ecdd
commit
f40d0477d9
@ -379,6 +379,7 @@ export const useBluetoothStore = defineStore('ble', {
|
|||||||
this.getBluetoothStatus()
|
this.getBluetoothStatus()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.deviceList = []
|
||||||
uni.startBluetoothDevicesDiscovery({
|
uni.startBluetoothDevicesDiscovery({
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user