fix:解决设备运行状态无法显示问题https://gitee.com/beecue/fastbee/issues/

This commit is contained in:
Ming
2024-11-28 05:21:24 +08:00
parent 5abe95f617
commit d8e07328c7

View File

@@ -420,9 +420,6 @@ export default {
/* Mqtt回调处理 */ /* Mqtt回调处理 */
mqttCallback() { mqttCallback() {
this.$mqttTool.client.on('message', (topic, message, buffer) => { this.$mqttTool.client.on('message', (topic, message, buffer) => {
if (message instanceof Uint8Array) {
message = new TextDecoder().decode(message);
}
let topics = topic.split('/'); let topics = topic.split('/');
let productId = topics[1]; let productId = topics[1];
let deviceNum = topics[2]; let deviceNum = topics[2];