update: 新增设备充电通知
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user