From b9ffd276b4fa8ca1918f486e70d7e4d0d04d9d9f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 10 Aug 2022 08:47:46 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhny-dsjdp

---
 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