输出数据,测试使用
parent
3b1b931200
commit
ae39230bec
|
|
@ -135,6 +135,7 @@
|
|||
const topicUAVUrl = computed(() => {
|
||||
return 'thing/product/' + UAVinfo.sn + '/osd';
|
||||
});
|
||||
const mqttData = ref([]);
|
||||
onMounted(() => {
|
||||
destroyConnection();
|
||||
createConnection(connectCallback);
|
||||
|
|
@ -151,6 +152,8 @@
|
|||
if (topic == topicUAVUrl.value) {
|
||||
if (rs.data.latitude && rs.data.longitude) {
|
||||
uavTrack.value = rs.data;
|
||||
mqttData.value.push(rs.data);
|
||||
console.log(mqttData.value);
|
||||
}
|
||||
} else if (topic == topicUrl.value) {
|
||||
if (rs.data.latitude && rs.data.longitude) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue