更换wifi添加loading
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user