riku
2025-05-30 c2e36c45578e63ad17c5e258c92d62d9ae03dadb
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
    }