update:代码备份
This commit is contained in:
@@ -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 ? "设备已连接" : "设备连接已断开");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user