echart. 同一个组件数据重绘
watch: { dataList: { handler() { if (this.chart) { this.chart.dispose(); this.chart = null; } this.initChart(); }, deep: true, // immediate: true }, },
watch: { dataList: { handler() { if (this.chart) { this.chart.dispose(); this.chart = null; } this.initChart(); }, deep: true, // immediate: true }, },