细节调整
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user