问题:tab切换重新渲染Echarts图表 :
解决方法:在改变tab事件中实例化echarts
handleClick(tab, event) {
console.log(tab.name);
if (tab.name === "second") {
this.$nextTick((_) => {
this.UgcChart();
this.attributeCharts();
this.drawProductLine();
});
}
},
展开
14