chc преди 1 година
родител
ревизия
1924a205b5
променени са 1 файла, в които са добавени 20 реда и са изтрити 20 реда
  1. 20 20
      src/views/map/searchInfo.vue

+ 20 - 20
src/views/map/searchInfo.vue

@@ -124,7 +124,7 @@ export default defineComponent({
     onMounted((e) => {
       // currentListDom.value.addEventListener('scroll', listenerScroll);
       // 将数据放入
-      dataList.value=basicStore.getStDetailArrStore
+      dataList.value = basicStore.getStDetailArrStore;
     });
     //取消滑动事件
     onUnmounted((e) => {
@@ -193,26 +193,26 @@ export default defineComponent({
           }
           window.breathMarker = map.findOverlay(`gcd&${i.stcd}`);
           window.breathMarker.breathe(0, 0.3);
+          map.flyTo(
+            {
+              destination: {
+                x: i.lng,
+                y: i.lat,
+                z: 5000,
+              },
+              orientation: {
+                heading: 6.283185307179586,
+                pitch: -1.5688928482139568,
+                roll: 0,
+              },
+            },
+            1,
+            () => {
+              // siteDetail(i);
+            }
+          );
         }
       });
-      map.flyTo(
-        {
-          destination: {
-            x: e.lng,
-            y: e.lat,
-            z: 5000,
-          },
-          orientation: {
-            heading: 6.283185307179586,
-            pitch: -1.5688928482139568,
-            roll: 0,
-          },
-        },
-        1,
-        () => {
-          // siteDetail(i);
-        }
-      );
     }
 
     /**
@@ -297,7 +297,7 @@ export default defineComponent({
       type,
       clearData,
       closeSeachStatus,
-      selectValue
+      selectValue,
     };
   },
 });