合并代码

This commit is contained in:
liub
2026-03-19 14:37:58 +08:00
parent ac59e28281
commit 84feb9f1e8
7 changed files with 150 additions and 162 deletions

View File

@ -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
},