From fc1aae3d2a55f333181d7d30bfefb672d2e6641b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 19 Sep 2023 11:40:55 +0800 Subject: [PATCH] =?UTF-8?q?CN-1317=20fix:=20=E5=9C=B0=E5=9B=BE=E6=9C=89?= =?UTF-8?q?=E6=97=B6=E7=82=B9=E5=87=BB=E4=B8=80=E6=AC=A1=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=B8=8B=E9=92=BB=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99?= =?UTF-8?q?=20=E2=80=9CNo=20detailed=20map=20yet=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmMap.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/charts2/charts/npm/NpmMap.vue b/src/views/charts2/charts/npm/NpmMap.vue index bad2f756..f1c2b00a 100644 --- a/src/views/charts2/charts/npm/NpmMap.vue +++ b/src/views/charts2/charts/npm/NpmMap.vue @@ -348,7 +348,7 @@ export default { return imageSeries }, - async drill (countryId) { + async drill (countryId, num) { if (countryId) { const targetMapObject = this.polygonSeries.getPolygonById(countryId) targetMapObject.series.chart.zoomToMapObject(targetMapObject) @@ -369,9 +369,13 @@ export default { await this.$nextTick(() => { this.loadAm4ChartMap(this.countrySeries, this.countryImageSeries) }) + } else if (num < 2) { + // 多次测试,最多2次查询不到数据 + await this.drill(countryId, 0) } else { this.$message.warning(this.$t('tip.noDetailMap')) } + num++ } } },