vue使用高德地图错误 ‘AMapUI‘ is not defined , ‘AMap‘ is not defined 问题及解决。
时间:2021-04-16 12:28:51
收藏:0
阅读:637
在index.html中引入高德地图后,报错 ‘AMapUI‘ is not defined , ‘AMap‘ is not defined‘
先是试了把高德地图的引用放到body里发现没有用,后查明在在.eslintrc.js中配置如下
"globals": { "AMap": "true", "AMapUI":"true", },
如果没有.eslintrc.js文件则先安装一下
eslint --init
原文:https://www.cnblogs.com/sinceForever/p/14665998.html
评论(0)