update:新增ota

This commit is contained in:
2026-09-21 14:56:43 +08:00
parent b060d8f987
commit 4bd7599cc0
11 changed files with 652 additions and 410 deletions
+2
View File
@@ -19,6 +19,7 @@ const getDefaultDevice = () => ({
const getDefaultDeviceStatus = () => ({
battery: null,
charging: false,
version: "",
online: false,
netType: "",
@@ -168,6 +169,7 @@ export default defineStore("store", {
battery: Number.isFinite(battery)
? Math.min(100, Math.max(0, battery))
: null,
charging: status.charging === true,
version: String(status.version ?? "").trim(),
online,
netType: String(status.netType ?? "").trim().toLowerCase(),