update: 新增设备充电通知

This commit is contained in:
2026-08-14 17:59:11 +08:00
parent e7f073ed7c
commit 2628a17b3f
13 changed files with 54 additions and 1 deletions
+2
View File
@@ -97,6 +97,8 @@ function createWebSocket(token, onMessage) {
uni.$emit("update-online");
} else if (msg.constructor === MESSAGETYPES.DeviceOffline) {
uni.$emit("update-online");
} else if (msg.constructor === MESSAGETYPES.DeviceCharging) {
uni.$emit("device-charging");
}
}
});