|
|
@@ -166,7 +166,10 @@
|
|
|
width: isJA.value ? 200 : 200,
|
|
|
},
|
|
|
];
|
|
|
- const currentLatLng = ref({
|
|
|
+ const currentLatLng = ref<{
|
|
|
+ lat: number | null;
|
|
|
+ lng: number | null;
|
|
|
+ }>({
|
|
|
lat: null,
|
|
|
lng: null,
|
|
|
});
|
|
|
@@ -211,7 +214,7 @@
|
|
|
openMapModal(true, latLng);
|
|
|
} else {
|
|
|
console.warn('打开地图-强刷');
|
|
|
- currentLatLng.value = undefined;
|
|
|
+ currentLatLng.value = { lat: null, lng: null };
|
|
|
openMapModal(true);
|
|
|
}
|
|
|
}
|
|
|
@@ -220,7 +223,7 @@
|
|
|
if (coord) {
|
|
|
currentLatLng.value = coord;
|
|
|
} else {
|
|
|
- currentLatLng.value = undefined;
|
|
|
+ currentLatLng.value = { lat: null, lng: null };
|
|
|
}
|
|
|
|
|
|
isShowMapModal.value = false;
|