更新用户信息 同步

This commit is contained in:
17792275749
2025-04-08 16:54:33 +08:00
parent 8411e91f04
commit 526aac8ec3
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -55,12 +55,10 @@ Page({
app.globalData.ppScale.plugin.Blue.setDeviceSetting(seviceList);
app.globalData.ppScale.plugin.Blue.start(seviceList[0].deviceName, false);
app.globalData.ppScale.plugin.bus.subscribe("devicesList", (res) => {
console.log("deviceInfo ===> devicesList", res);
let fIndex = res.findIndex(item => item.deviceId === this.data.deviceInfo.deviceId);
if (fIndex >= 0) {
if (fIndex > -1) {
app.globalData.ppScale.plugin.Blue.stopBluetoothDevicesDiscovery();
app.globalData.ppScale.plugin.Blue.createBLEConnection(res[fIndex]);
return;
}
});
}
@@ -16,6 +16,7 @@ Page({
userInfo: wx.getStorageSync("userInfo"),
ssid: app.globalData.ppScale.wifi.ssid
});
this.getSubUser();
},
completeClick() {
@@ -90,7 +91,6 @@ Page({
resetDevice() {
app.globalData.ppScale.device = {
setting: [],
list: [],
mac: null,
name: "",