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>