CN-1317 fix: 完善点击地图时地标数据取值为undefined逻辑
This commit is contained in:
@@ -369,13 +369,16 @@ export default {
|
|||||||
await this.$nextTick(() => {
|
await this.$nextTick(() => {
|
||||||
this.loadAm4ChartMap(this.countrySeries, this.countryImageSeries)
|
this.loadAm4ChartMap(this.countrySeries, this.countryImageSeries)
|
||||||
})
|
})
|
||||||
} else if (num < 2) {
|
} else if (!num || num < 3) {
|
||||||
// 多次测试,最多2次查询不到数据
|
// 多次测试,最多2次查询不到数据
|
||||||
await this.drill(countryId, 0)
|
if (!num) {
|
||||||
|
num = 0
|
||||||
|
}
|
||||||
|
num++
|
||||||
|
await this.drill(countryId, num)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('tip.noDetailMap'))
|
this.$message.warning(this.$t('tip.noDetailMap'))
|
||||||
}
|
}
|
||||||
num++
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user