linrong

Results 1 comments of linrong

目前我发现有三个解决办法, 1.通过在.eslintrc.js中配置如下,只要配置一个: ``` globals: { AMap: true }, ``` 2.在每一个使用中配置,每一个使用到的都要配置: ```bash // eslint-disable-next-line no-undef gaodesatellite: new AMap.TileLayer.Satellite() ``` 3.在某一个使用中配置,应该一个文件只需要一次 ```bash /* global AMap*/ gaodesatellite: new AMap.TileLayer.Satellite() ``` 即可解决问题