学无先后,达者为师

网站首页 编程语言 正文

echarts飘警告[ECharts] There is a chart instance already initialized on the dom.

作者:今天不要写bug 更新时间: 2023-07-09 编程语言

在这里插入图片描述

if (
   //判断是否存在echarts实例化对象,如果存在则销毁
   this.myChart != null &&
   this.myChart != '' &&
   this.myChart != undefined
) {
   this.myChart.dispose()
}
var chartDom = this.$refs.chartName
this.myChart = echarts.init(chartDom)

原文链接:https://blog.csdn.net/weixin_52443895/article/details/129156096

  • 上一篇:没有了
  • 下一篇:没有了
栏目分类
最近更新