第1个回答 2022-07-24
myChartProduct: null,
if (_this.myChartProduct != null &&_this.myChartProduct != '' && _this.myChartProduct != undefined) {
_this.myChartProduct.dispose()
} else {
_this.myChartProduct = _this.$echarts.init(
document.getElementById('chart-product')
)
}
_this.myChartProduct = _this.$echarts.getInstanceByDom(
document.getElementById('chart-product')
)