From 3dc278f10a4c3e3db7ce3a445bed710bdc88916e Mon Sep 17 00:00:00 2001
From: xiebin <123456>
Date: Wed, 16 Nov 2022 17:10:51 +0800
Subject: [PATCH] 基地信息坐标有误差的问题

---
 src/position/position.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/position/position.js b/src/position/position.js
index 1091582..eb56b4b 100644
--- a/src/position/position.js
+++ b/src/position/position.js
@@ -1,6 +1,6 @@
 /**
 * 高德地图定位
-* 
+*
 */
 // export const location = {
 // undefined
@@ -34,7 +34,7 @@
     AMap.plugin('AMap.Geolocation', function () {
         var geolocation = new AMap.Geolocation({
             // 是否使用高精度定位,默认:true
-            enableHighAccuracy: true,
+            enableHighAccuracy: true
             // 设置定位超时时间,默认:无穷大
             // timeout: 10000,
             // 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
@@ -48,13 +48,13 @@
         geolocation.getCurrentPosition()
         AMap.event.addListener(geolocation, 'complete', onComplete)
         AMap.event.addListener(geolocation, 'error', onError)
-        function onComplete(data) {
+        function onComplete (data) {
             // data是具体的定位信息
-            fn(data);
+            fn(data)
         }
-        function onError(data) {
+        function onError (data) {
             // 定位出错
-            fn(data);
+            fn(data)
         }
     })
-};
\ No newline at end of file
+}

--
Gitblit v1.9.3