lilei %!s(int64=4) %!d(string=hai) anos
pai
achega
c6be95f058
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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)