lilei 4 yıl önce
ebeveyn
işleme
c6be95f058
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      src/components/Echarts/pie.vue

+ 4 - 0
src/components/Echarts/pie.vue

@@ -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)