CN-1317 fix: 完善点击地图时地标数据取值为undefined逻辑

This commit is contained in:
刘洪洪
2023-09-20 14:44:30 +08:00
parent 724107b07c
commit 94caec9e02

View File

@@ -369,13 +369,16 @@ export default {
await this.$nextTick(() => {
this.loadAm4ChartMap(this.countrySeries, this.countryImageSeries)
})
} else if (num < 2) {
} else if (!num || num < 3) {
// 多次测试最多2次查询不到数据
await this.drill(countryId, 0)
if (!num) {
num = 0
}
num++
await this.drill(countryId, num)
} else {
this.$message.warning(this.$t('tip.noDetailMap'))
}
num++
}
}
},