riku
2024-08-29 6b6eff08baa3d052b66fd2e68f1ac0d8495f6f8a
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);
        }
      );
    },