update:新增ota
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user