优化小秤的稳定性

This commit is contained in:
17792275749
2025-05-29 15:34:28 +08:00
parent bffff89518
commit a76f61a90a
6 changed files with 16 additions and 30 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ Page({
// 卸载事件监听
onUnload() {
app.globalData.ppScale.plugin.Blue.disconnect();
app.globalData.ppScale.plugin.Blue.stop();
if (this._connectStateWatcher) {
app.unwatch('ppScale.device.connectState', this._connectStateWatcher);
}