maxiaoxiao před 1 rokem
rodič
revize
258aaf3f5b
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      src/views/siteselection/components/xzjg.vue

+ 4 - 2
src/views/siteselection/components/xzjg.vue

@@ -407,8 +407,10 @@ export default {
       }
     },
     pullClear(item){
-      if (dataSources[item.id])
-      viewer.dataSources.remove(dataSources[item.id]);
+      if (dataSources[item.id]){
+        viewer.dataSources.remove(dataSources[item.id]);
+        dataSources[item.id] = null
+      }
     },
 
     submit() {