vue弹框echarts报错Cannot read property 'getAttribute' of undefined

主要的问题是echars图标还没出来,数据现出来了(已经解决)

vue弹框echarts报错Cannot read property 'getAttribute' of undefined_第1张图片

 




解决方法:

不需要挂载到updated updated: function () { this.drawPieChart(); }, 直接把这个写到数据请求的方法中: this.$nextTick(function () { this.drawPieChart(); });

 

你可能感兴趣的:(vue)