From 2d4afa25d167bc158b6ca4fb3a5d09dec1f0ec6e Mon Sep 17 00:00:00 2001
From: guanqp <2634859599@qq.com>
Date: Tue, 19 Jul 2022 18:21:04 +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