maxiaoxiao hai 10 meses
pai
achega
3aa1c359d6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

+ 5 - 1
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -605,6 +605,10 @@ export default {
       } else if (tdsy.layersObj[newVal]) {
         // tdsy.layersObj[newVal].show = true;
       }
+      if (oldVal && layerSources[oldVal]) {
+        viewer.dataSources.remove(layerSources[oldVal]);
+        layerSources[oldVal] = null;
+      }
       console.log(newVal, oldVal, "----");
     },
     computed_vectorData(newVal, oldVal) {
@@ -713,7 +717,7 @@ div::-webkit-scrollbar {
     border-radius: 4px;
     top: 10px !important;
     position: absolute;
-    right: 20px;
+    right: 10px;
   }
 
   .PangetitleVector {