From 4189d4019a27b4e6ea95e215602e76bf130fa2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 10 Sep 2025 14:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 6e8b070..a8489b6 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -629,7 +629,7 @@ onMounted(() => { ad() getOption() getShildTableList() - points.value = localStorage.getItem('points') ? JSON.parse(localStorage.getItem('points')) : [ + points.value = [ { lon: 120.38532472236, lat: 36.14505053622, @@ -767,8 +767,8 @@ const ShutDownWorkBtn = () => { ShutDownWork() } const getPoint = (k) => { - points.value[k].lon = currentPosition.value.lon - points.value[k].lat = currentPosition.value.lat + points.value[k].lon = currentPosition.value.lon || 0 + points.value[k].lat = currentPosition.value.lat || 0 } const getArea = () => { if (points.value.length < 4) return