用腾讯地图pai获取信息
this.axios
.get("/api/ws/place/v1/search", {
params: {
keyword: e, //关键字
// region: "郑州", //当前城市
key: "VFIBZ-", //你申请的key
boundary: "region(北京, 0)",
},
})
.then((res) => {
//成功返回的信息
console.log(this.city, "1");
console.log(res);
})
.catch((err) => {
console.log(err);
this.$message.error("请求超时");
});