Explorar el Código

修复地图问题

Hwf hace 1 semana
padre
commit
a0fe1f6dec
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/views/globalMap/index.vue

+ 3 - 1
src/views/globalMap/index.vue

@@ -113,7 +113,9 @@ const addMarkers = (item) => {
     } else {
       // 右侧图层分析状态
       item.checked2 = true;
-      mapStore.pointType.push(item);
+      if (item.component !== 'Layout') {
+        mapStore.pointType.push(item);
+      }
     }
     mapStore.setPointOption();
   }