mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
feat: 处理未展示南海,进入下级还会出现的问题
This commit is contained in:
parent
87604c9cdb
commit
caad259e71
@ -171,7 +171,19 @@ const backLevel = () => {
|
|||||||
|
|
||||||
// 切换地图
|
// 切换地图
|
||||||
const checkOrMap = async (newData: string) => {
|
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.geo.map = newData
|
||||||
props.chartConfig.option.series.forEach((item: any) => {
|
props.chartConfig.option.series.forEach((item: any) => {
|
||||||
if (item.type === 'map') item.map = newData
|
if (item.type === 'map') item.map = newData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user