| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import EventBus from '@/utils/eventBus'; |
| | | import dataCenterMap from '@/views/dataCenter/components/dataCenterMap.vue'; |
| | | import PanoramaPopup from '@/components/PanoramaPopup/PanoramaPopup.vue'; //全景 |
| | | import { ElMessage, ElMessageBox, ElLoading } from 'element-plus'; |
| | |
| | | |
| | | onMounted(() => { |
| | | getaiImagesPage(); |
| | | // 监听打开全景事件 |
| | | EventBus.on('open-panorama', params => { |
| | | console.log('收到全景事件:', params); |
| | | panoramaParamsShow.value = params.show; |
| | | panoramaParamsUrl.value = params.url; |
| | | }); |
| | | }); |
| | | onBeforeUnmount(() => { |
| | | // 组件卸载时移除事件监听,防止内存泄漏 |
| | | EventBus.off('open-panorama'); |
| | | }); |
| | | |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |