From 450dc8a1e4e0d643817ffd0eee04b938cc84af74 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 07 Nov 2025 15:23:09 +0800
Subject: [PATCH] feat:修改密码成功清除记住密码
---
src/hooks/use-location/index.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/hooks/use-location/index.js b/src/hooks/use-location/index.js
index cadcd10..7e063d1 100644
--- a/src/hooks/use-location/index.js
+++ b/src/hooks/use-location/index.js
@@ -5,7 +5,7 @@
* - 地址解析
* - 距离计算
*/
-export default function useLocation() {
+export default function useLocation () {
// 当前位置信息
const location = ref(null)
@@ -191,9 +191,9 @@
const a =
Math.sin(dLat / 2) * Math.sin(dLat / 2) +
Math.cos((lat1 * Math.PI) / 180) *
- Math.cos((lat2 * Math.PI) / 180) *
- Math.sin(dLon / 2) *
- Math.sin(dLon / 2)
+ Math.cos((lat2 * Math.PI) / 180) *
+ Math.sin(dLon / 2) *
+ Math.sin(dLon / 2)
const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
const distance = R * c
--
Gitblit v1.9.3