[AI Generated]: fix(Views): 修复最小化时立即清空 WiFi 列表,避免展示失效数据
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
81f9301c64
commit
1e3f1934b1
@@ -299,6 +299,18 @@ Page({
|
|||||||
|
|
||||||
onHide() {
|
onHide() {
|
||||||
console.log("configureDevice onHide");
|
console.log("configureDevice onHide");
|
||||||
|
// 配网步骤:立即清空 WiFi 列表(stop 后数据已失效)
|
||||||
|
if (this.data.progress.index === 2) {
|
||||||
|
const comp = this.selectComponent('#configureDevice3');
|
||||||
|
if (comp) {
|
||||||
|
comp.setData({
|
||||||
|
progress: 0,
|
||||||
|
wifiList: [],
|
||||||
|
selectWifi: null,
|
||||||
|
selectWifiPWD: ""
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
app.resetReconnectCount();
|
app.resetReconnectCount();
|
||||||
app.setGlobalData('ppScale.device.connectState', null);
|
app.setGlobalData('ppScale.device.connectState', null);
|
||||||
ppScale.plugin.Blue.stop();
|
ppScale.plugin.Blue.stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user