优化小秤的稳定性
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user