更新
This commit is contained in:
@@ -137,6 +137,8 @@ export default {
|
||||
// enableHighAccuracy: true // 是否使用高精度定位,默认:true
|
||||
})
|
||||
geolocation.getCurrentPosition((status, result) => {
|
||||
console.log('status', status)
|
||||
console.log('result', result)
|
||||
if (status === 'complete') {
|
||||
let { lat: latitude, lng: longitude } = result.position
|
||||
this.position = { latitude, longitude }
|
||||
|
||||
Reference in New Issue
Block a user