要等dom加载完之后在加载图表否则就会报这个错误
加上这句代码 就能解决
this.$nextTick(function (){
this.drawpowerline()
})
要等dom加载完之后在加载图表否则就会报这个错误
加上这句代码 就能解决
this.$nextTick(function (){
this.drawpowerline()
})