月球大数据地理空间分析展示平台-【前端】-月球2期前端
WX
2023-07-20 9eff50b649a5284324bb4e066d73c37a5c5e5f2b
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);