掘友等级
获得徽章 0
vue的路由通过接口获取,其中的component通过require的引用,但是点击跳转的时候报错,有没有哪位大佬瞅瞅
工具:vue2+element
问题:tab切换重新渲染Echarts图表 :
解决方法:在改变tab事件中实例化echarts
handleClick(tab, event) {
console.log(tab.name);
if (tab.name === "second") {
this.$nextTick((_) => {
this.UgcChart();
this.attributeCharts();
this.drawProductLine();
});
}
},