that.dataList = res.data.data; //这里获取不到函数外面的this,所以一定要that

发布时间 2023-09-30 00:29:14作者: ucdos2023

getMap() {
let that = this;
console.log('=========getMap');
uni.getLocation({

 

。。。。

success: (res) => {
that.dataList = res.data.data; //这里获取不到函数外面的this,所以一定要that