vue项目使用echarts按需引入实现地图动态显示效果时,报错:TypeError: Cannot read property 'dataToPoint' of undefined
vue项目使用echarts按需引入实现地图动态显示效果时,报错:TypeError: Cannot read property 'dataToPoint' of undefined
借鉴了该大神的文章:https://blog.csdn.net/mazeyqian/article/details/78700605 在我的项目里面未引入geo,引入geo后报错消失。
引入方法:require('echarts/lib/component/geo')
- 上一篇 »经验总结:按需加载JS和css
- 下一篇 »vue3安装vant实现按需引入和全局引入