From c4b0e80dc52f75c54f671b2471c9fb1b6da25062 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期一, 26 十月 2026 17:45:58 +0800
Subject: [PATCH] feat(hrm): 地图选点移除“定位到当前位置”

---
 src/views/hrm/attendance/rule/modules/location-map-picker.vue |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/src/views/hrm/attendance/rule/modules/location-map-picker.vue b/src/views/hrm/attendance/rule/modules/location-map-picker.vue
index d314e88..d793219 100644
--- a/src/views/hrm/attendance/rule/modules/location-map-picker.vue
+++ b/src/views/hrm/attendance/rule/modules/location-map-picker.vue
@@ -267,31 +267,6 @@
   }
 }
 
-function handleCurrentLocation() {
-  if (!navigator.geolocation) {
-    message.warning('褰撳墠娴忚鍣ㄤ笉鏀寔瀹氫綅');
-    return;
-  }
-  loading.value = true;
-  navigator.geolocation.getCurrentPosition(
-    async (position) => {
-      const [longitude, latitude] = wgs84ToBd09(
-        position.coords.longitude,
-        position.coords.latitude,
-      );
-      await selectBaiduLocation(longitude, latitude);
-      loading.value = false;
-    },
-    () => {
-      message.warning(
-        '瀹氫綅澶辫触锛岃寮�鍚祻瑙堝櫒瀹氫綅鏉冮檺锛堥潪 localhost 鐜闇�浣跨敤 HTTPS锛�',
-      );
-      loading.value = false;
-    },
-    { enableHighAccuracy: true, maximumAge: 0, timeout: 15_000 },
-  );
-}
-
 async function initializeMap() {
   if (!hasMapConfig.value || !mapContainer.value) {
     return;
@@ -384,7 +359,6 @@
         @press-enter="handleSearch"
       />
       <Button :loading="loading" @click="handleSearch">鎼滅储鍦板潃</Button>
-      <Button @click="handleCurrentLocation">瀹氫綅鍒板綋鍓嶄綅缃�</Button>
     </div>
     <div
       ref="mapContainer"

--
Gitblit v1.9.3