原文: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 在我的项目里面未引入geo,引入geo后报错消失。 引入方法:require echarts lib co ...

2019-04-12 17:15 0 2049 推荐指数:

查看详情

vue项目中使用echarts map报错Cannot read property 'push' of undefined nanhai.js

vue中绘制地图需要加载一个本地china.json文件,我用的是get请求的方法加载的,而不是直接import,因为我怕import请求到的部署到线上的时候会有问题。如下是get请求方法: 在请求到数据后我直接用res来绘制地图,结果报错 我就纳闷,根本没有这 ...

Wed Dec 18 18:56:00 CST 2019 9 485
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM