src/views/Index.vue
@@ -18,6 +18,7 @@ > </coord-location> </div> </template> @@ -43,6 +44,9 @@ import spatialBox from "@/views/query/SpatialQuery.vue"; //坐标定位 import CoordLocation from "@/views/query/CoordLocation.vue"; //阴影分析 import mapclock from "@/views/mapClock/index.vue"; import router from "@/router"; import { useStore } from "vuex"; // 引入useStore 方法 @@ -64,7 +68,9 @@ const functionForJs = (res) => { switch (res.type) { case "exportMap": store.state.exportImgUrl = res.url; layerExportshow.value = res.value; break; case "spatialQuery": setSpatialQuery(res);