vue 引入echarts 报错"TypeError: Cannot read property 'getAttribute' of null"

vue 引入echarts 报错"TypeError: Cannot read property 'getAttribute' of null"

解决办法: this.$nextTick

  created() {
    this.$nextTick(function() {
      this.productEchart();
      this.customentEchart();
      this.saleEchart();
      this.jishiEchart();
      this.jishiEchart1();
    });
  },