@@ -173,6 +173,10 @@ export default {
}
]
+ // 已创建的先销毁
+ if (this.dom) {
+ this.dom.dispose()
+ }
this.dom = echarts.init(this.$refs.dom, 'tdTheme')
console.log(option, 'option')
this.dom.setOption(option)