点击地图,可以获取经纬度。如何通过代码,获取点击的城市名称axios.get(`http://api.map.baidu.com/geocoder/v2/?callback=renderReverse&location=${e.latlng.lng},${e.latlng.lat}&output=json&pois=1&ak=dCU5LQGav6c9UlnHw9ucF5UtG746fteN`).then(res => {
console.log(res)
})
报跨域错误。能通过一个api来获取吗?