合并代码
This commit is contained in:
8
App.vue
8
App.vue
@ -27,7 +27,7 @@
|
||||
// uni.removeStorageSync(val);
|
||||
// }
|
||||
// });
|
||||
uni.clearStorageSync();
|
||||
// uni.clearStorageSync();
|
||||
//以上代码仅在开发时使用,否则会出现不可预知的问题。
|
||||
|
||||
// #ifdef APP|APP-PLUS
|
||||
@ -93,8 +93,10 @@
|
||||
// #ifdef APP|APP-PLUS
|
||||
let ble = bleTool.getBleTool();
|
||||
if (ble) {
|
||||
console.log("断开所有蓝牙设备");
|
||||
ble.disconnectDevice();
|
||||
console.log("App隐藏了,断开所有蓝牙设备,停止搜索");
|
||||
ble.StopSearch().catch(ex=>{});
|
||||
ble.disconnectDevice().catch(ex=>{});
|
||||
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user