细节优化

This commit is contained in:
kron
2026-01-07 15:12:18 +08:00
parent 494f83392e
commit 1f75045db4
6 changed files with 13 additions and 6 deletions

View File

@@ -108,12 +108,12 @@ onShow(async () => {
}
const devices = await getMyDevicesAPI();
if (devices.bindings && devices.bindings.length) {
const data = await getDeviceBatteryAPI();
updateOnline(data.online);
updateDevice(
devices.bindings[0].deviceId,
devices.bindings[0].deviceName
);
const data = await getDeviceBatteryAPI();
updateOnline(data.online);
}
}
}