更换wifi添加loading

This commit is contained in:
17792275749
2025-05-29 14:43:32 +08:00
parent 2db6e46593
commit 472eeaad3e
3 changed files with 50 additions and 28 deletions
@@ -18,9 +18,14 @@ Component({
// 组件的方法
methods: {
getWiFiList() {
wx.showLoading({
title: "正在获取Wi-Fi列表...",
mask: true
});
app.globalData.ppScale.activeProtocol.dataFindSurroundDevice((res) => {
console.log("connectedDevice ===》dataFindSurroundDevice", res);
wx.hideLoading();
this.setData({
wifiList: res
})