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