diff --git a/pages/index/index.vue b/pages/index/index.vue index efaee12..109a7a1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -97,11 +97,10 @@ methods: { // 检查用户是否已经授权定位权限 checkLocation() { - console.log(navigator) if (navigator.geolocation) { navigator.geolocation.getCurrentPosition( (position) => { - console.log(111,position) + console.log(111,position.coords) }, (error) => { let locationStatus = '' diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 4d1bd16..db992fd 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@