Browse Source

bug 修复

lilei 4 năm trước cách đây
mục cha
commit
c6be95f058
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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)