gemercheung 1 год назад
Родитель
Сommit
1c6a848e96
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      src/views/map/list.vue

+ 6 - 3
src/views/map/list.vue

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