细节调整

This commit is contained in:
kron
2026-01-06 14:41:45 +08:00
parent 3d13f7c880
commit 4275f608fe
5 changed files with 8 additions and 7 deletions

View File

@@ -108,6 +108,8 @@ 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
@@ -121,8 +123,6 @@ onMounted(async () => {
const config = await getAppConfig();
updateConfig(config);
console.log("全局配置:", config);
const data = await getDeviceBatteryAPI();
updateOnline(data.online);
});
onShareAppMessage(() => {