vue echarts There is a chart ins
2021-08-23 本文已影响0人
安徒生1997
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')
)