riku
2024-05-12 fb876cbc3b21035125668f2db6ee84e47efb544f
src/components/monitor/VehicleData.vue
@@ -14,17 +14,21 @@
export default {
  props: {
    loading: Boolean,
    factorDatas: FactorDatas
    factorDatas: FactorDatas,
    speed: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      speed: 0
      // speed: 0
    };
  },
  watch: {
    factorDatas: {
      handler(nV) {
        this.speed = this.lastOne(nV, '14');
        // this.speed = this.lastOne(nV, '14');
      },
      deep: true
    }