feat: 处理未展示南海,进入下级还会出现的问题

This commit is contained in:
奔跑的面条 2024-03-14 11:55:54 +08:00
parent 87604c9cdb
commit caad259e71

View File

@ -171,7 +171,19 @@ const backLevel = () => {
//
const checkOrMap = async (newData: string) => {
await getGeojson(newData)
if (newData === 'china') {
if (props.chartConfig.option.mapRegion.showHainanIsLands) {
//
hainanLandsHandle(true)
vEchartsSetOption()
} else {
//
hainanLandsHandle(false)
vEchartsSetOption()
}
} else {
await getGeojson(newData)
}
props.chartConfig.option.geo.map = newData
props.chartConfig.option.series.forEach((item: any) => {
if (item.type === 'map') item.map = newData