src/views/realtimemode/RealtimeMode.vue
@@ -39,6 +39,7 @@ startLoopFetchRealTimeData, clearFetchingTask } from '@/utils/factor/data'; import thirdPartyDataApi from '@/api/thirdPartyDataApi'; // const mapAnimation = new MapAnimation(); @@ -115,6 +116,7 @@ // this.fetchNextData(res.data[res.data.length - 1].time); // } this.fetchNextData(); thirdPartyDataApi.fetchLatestData(this.deviceType, this.deviceCode); }); }); }, @@ -133,6 +135,7 @@ (res) => { this.onFetchData(res.data); this.onMapData(res.data); thirdPartyDataApi.fetchLatestData(this.deviceType, this.deviceCode); } ); },