解决方案: forceNewApi: true,
uni.connectWifi({
forceNewApi: true,
SSID: this.SSID,
password: this.password,
success: (res) => {
console.log(res, "连接成功");
},
fail: (err) => {
console.log(err);
},
});
加上这话就返回正常数据了