update:代码备份

This commit is contained in:
2026-09-15 15:39:46 +08:00
parent c8533de5cf
commit 03fa2f4d48
56 changed files with 2107 additions and 636 deletions
+2
View File
@@ -28,6 +28,7 @@
const {
updateUser,
updateOnline,
updateDeviceBattery,
showDeviceChargingDialog,
clearSessionState,
clearDevice
@@ -74,6 +75,7 @@
const wasOnline = Boolean(online.value);
const nextOnline = Boolean(data.online);
updateOnline(nextOnline);
updateDeviceBattery(nextOnline ? data?.battery ?? data?.power : null);
if (!device.value.deviceId || wasOnline === nextOnline) return;
audioManager.play(nextOnline ? "设备已连接" : "设备连接已断开");
}