whycwx
2021-03-16 f9e2141e281f3e185989ba50001eb30c1c9e363f
src/components/charts/chinaMap.vue
@@ -42,8 +42,9 @@
  },
  methods: {
    setOption(opt) {
        // 设置配置项
        this.$options.chart.setOption(opt);
            // 设置配置项
            this.$options.chart.setOption(opt);
    },
    setData(data) {
        console.log(data);
@@ -321,7 +322,12 @@
        this.setOption(option);
    },
    resize() {
      this.$options.chart.resize();
        let self = this;
        setTimeout(() => {
          self.$options.chart.resize();
          self.setData(null);
        }, 300)
    //   this.$options.chart.resize();
    }
  },
  mounted() {