初步完成

This commit is contained in:
17792275749
2026-03-11 15:31:54 +08:00
parent c41c7d9f63
commit b157ef5d57
3 changed files with 23 additions and 16 deletions
@@ -29,12 +29,16 @@ Component({
title: "正在获取Wi-Fi列表...",
mask: true
});
app.globalData.ppScale.activeProtocol.dataFindSurroundDevice((res) => {
wx.hideLoading();
this.setData({
wifiList: res
})
})
// 重新获取协议实例,避免用户同步操作后旧引用失效
setTimeout(() => {
app.globalData.ppScale.activeProtocol = app.globalData.ppScale.plugin.ScaleAction.getActiveProtocol();
app.globalData.ppScale.activeProtocol.dataFindSurroundDevice((res) => {
wx.hideLoading();
this.setData({
wifiList: res
})
})
}, 1500);
},
// 最小化后重连,重置所有状态并重新获取 WiFi 列表