From 94caec9e02b3ed4bd4a5e63de4899e3851d6daa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Wed, 20 Sep 2023 14:44:30 +0800 Subject: [PATCH] =?UTF-8?q?CN-1317=20fix:=20=E5=AE=8C=E5=96=84=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=9C=B0=E5=9B=BE=E6=97=B6=E5=9C=B0=E6=A0=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8F=96=E5=80=BC=E4=B8=BAundefined=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmMap.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmMap.vue b/src/views/charts2/charts/npm/NpmMap.vue index f1c2b00a..7d8bbcd6 100644 --- a/src/views/charts2/charts/npm/NpmMap.vue +++ b/src/views/charts2/charts/npm/NpmMap.vue @@ -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++ } } },