|
@@ -1014,10 +1014,13 @@ export default {
|
|
this.mqttData.on("message", (topic, message) => {
|
|
this.mqttData.on("message", (topic, message) => {
|
|
console.log("topic", topic, message);
|
|
console.log("topic", topic, message);
|
|
const match = topic.match(/^\/dev\/(.+)\/tracker_targets$/);
|
|
const match = topic.match(/^\/dev\/(.+)\/tracker_targets$/);
|
|
- if (!match || match[1] !== clientId) {
|
|
|
|
|
|
+ if (!match) {
|
|
this.$refs.alarmModel.hanOtherMessage(topic, message);
|
|
this.$refs.alarmModel.hanOtherMessage(topic, message);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (match[1] == clientId) {
|
|
|
|
+ this.handleMessage(topic, message, clientId);
|
|
}
|
|
}
|
|
- this.handleMessage(topic, message, clientId);
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|