diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue index 39b125fb80..85abab443b 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue @@ -151,12 +151,18 @@ const appStore = useAppStoreWithOut() const isDataEaseBi = computed(() => appStore.getIsDataEaseBi) const chartContainer = ref(null) let mapTimer: number -const renderL7Plot = async (chart, chartView: L7PlotChartView, callback) => { +const renderL7Plot = async (chart: ChartObj, chartView: L7PlotChartView, callback) => { const map = parseJson(chart.customAttr).map let areaId = map.id country.value = areaId.slice(0, 3) if (dynamicAreaId.value) { - areaId = dynamicAreaId.value + // 世界下钻到国家,切换路径 + if (country.value === '000' && dynamicAreaId.value.startsWith('000')) { + country.value = dynamicAreaId.value.slice(3) + areaId = country.value + } else { + areaId = dynamicAreaId.value + } } mapTimer && clearTimeout(mapTimer) mapTimer = setTimeout(async () => {