xiangpei
2024-08-30 fc2f54929ba8d4d12af3fd0ed14a0d179c1f315e
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>