echart. 同一个组件数据重绘

watch: {
    dataList: {
      handler() {
        if (this.chart) {
          this.chart.dispose();
          this.chart = null;
        }
        this.initChart();
      },
      deep: true,
      // immediate: true
    },
  },

 

posted @ 2023-01-16 16:29  abcByme  阅读(130)  评论(0编辑  收藏  举报