fuliqi
2024-09-30 5a87c11f1d3d08fb0254e3592234198934bd0a6c
src/views/screen/components/screen-data/components/data-hola.vue
@@ -11,7 +11,7 @@
  name: 'DataHola',
  props: {
    centerValue: {
      type: [Number, String],
      type: Number,
      default: 0
    },
    holaColor: {
@@ -120,6 +120,12 @@
  mounted() {
    myChart = echarts.init(this.$refs['chartRef']);
    this.initChart();
  },
  watch: {
    centerValue() {
      myChart = echarts.init(this.$refs['chartRef']);
      this.initChart();
    }
  }
}
</script>