| | |
| | | <template> |
| | | <HomeLeft></HomeLeft> |
| | | <!-- <div>中间搜索</div> --> |
| | | <HomeRight></HomeRight> |
| | | <SearchBox /> |
| | | <template v-if="!singleUavHome?.id"> |
| | | <SearchBox /> |
| | | <HomeLeft /> |
| | | <HomeRight /> |
| | | </template> |
| | | <template v-else> |
| | | <SignMachineNest /> |
| | | </template> |
| | | <RSide /> |
| | | <Footer /> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import HomeRight from './components/HomeRight/HomeRight.vue'; |
| | | import HomeLeft from '@/views/Home/components/HomeLeft/HomeLeft.vue'; |
| | | import SearchBox from '@/views/Home/SearchBox.vue'; |
| | | import { useAggregation } from '@/views/Home/useAggregation'; |
| | | import MapPopUpBox from '@/views/Home/MapPopUpBox.vue'; |
| | | import { render } from 'vue'; |
| | | import SignMachineNest from '@/views/SignMachineNest/SignMachineNest.vue'; |
| | | import { useStore } from 'vuex'; |
| | | import Footer from '@/layout/Footer.vue'; |
| | | import RSide from '@/layout/RSide.vue'; |
| | | import { onMounted } from 'vue'; |
| | | import cesiumOperation from '@/utils/cesium-tsa'; |
| | | const store = useStore(); |
| | | const { _init,viewerDestory } = cesiumOperation(); |
| | | |
| | | const singleUavHome = computed(() => store.state.home.singleUavHome); |
| | | |
| | | useAggregation() |
| | | onBeforeUnmount(()=>{ |
| | | store.commit('setSingleUavHome',null); |
| | | viewerDestory() |
| | | }) |
| | | |
| | | onMounted(() => { |
| | | _init('cesium'); |
| | | }); |
| | | </script> |