微调 全景展示

This commit is contained in:
GGJ
2025-04-27 15:53:53 +08:00
parent a68283c296
commit ec52564874
4 changed files with 8373 additions and 7074 deletions

View File

@@ -26,7 +26,7 @@ const fetchConfig = async (name: string) => {
// fetchConfig()
const emit = defineEmits(['getRegionByRegion', 'eliminate', 'clickMap'])
onMounted(() => { })
onMounted(() => {})
const GetEchar = async (name: string) => {
let chartDom = document.getElementById('chartMap')
@@ -187,7 +187,6 @@ const GetEchar = async (name: string) => {
}
}
})
}
const MapReturn = (name: string) => {
@@ -213,6 +212,7 @@ const circle = () => {
}
const resizeHandler = () => {
myCharts.value?.resize()
myCharts.value?.setOption(myCharts.value.getOption()) // 强制更新配置
}
onBeforeUnmount(() => {
window.removeEventListener('resize', resizeHandler)