I am using vue+echart, and the chart for echart operation is encapsulated in a component of vue.
when leaving this component, because DOM is replaced, the referenced diagram naturally becomes null:
Cannot read property "getAttribute" of null
the way I think of is to release resources with dispose when leaving the component:
//
echarts.dispose(chartEle);
chartEle.dispose
I hope you will come up with some ideas.