Browse Source

清空图斑上图

maxiaoxiao 11 months ago
parent
commit
3e4def3e03
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/Query/clickQuery/clickQuery.vue

+ 3 - 1
src/components/Query/clickQuery/clickQuery.vue

@@ -57,7 +57,7 @@ import CockpitVector from "./CockpitVector.vue";
 import MultiLevelQuery from "./MultiLevelQuery.vue";
 
 import * as pick_cockpit_vector from "./pick_cockpit_vector.js";
-
+import * as tdsy from "@/views/cockpit/js/tdsy";
 let gwtype;
 export default {
   name: "clickQuery",
@@ -167,6 +167,8 @@ export default {
     toggleVisibility() {
       this.removeMapLayerQuery();
       store.setToolBarAction(9);
+      tdsy.remove()
+      store.state.vectorData = [];
     },
     addGeometrys(fill) {
       this.viewer.entities.removeAll();