diff --git a/src/views/counter/map2.vue b/src/views/counter/map2.vue index f18b3b2..4448a51 100644 --- a/src/views/counter/map2.vue +++ b/src/views/counter/map2.vue @@ -20,6 +20,7 @@ export default { map: null, flag: false, mapClick: false, + geo: [], defaultPositions: [ { title: '海洋公园', @@ -164,6 +165,8 @@ export default { var str = ['定位成功'] str.push('经度:' + data.position.getLng()) str.push('纬度:' + data.position.getLat()) + this.geo = [data.position.getLng(), data.position.getLat()] + console.log(this.geo) if (data.accuracy) { str.push('精度:' + data.accuracy + ' 米') }