vue中引用echarts出现TypeError: Cannot read property 'getAttribute' of undefined
this.$nextTick(() => {xxx});
解决vue中引用echarts出现"TypeError: Cannot read property 'getAttribute' of undefined"错误。
在调用echarts的位置直接使用上述方法即可,不需要像很多人说的非要在 "mounted"之中调用。
例如:
//统计图
sta...
原创
2020-04-20 17:02:46 ·
2352 阅读 ·
1 评论