From 8bf4ce16a6a1637253657afc459f20d37080ed0e Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 10 Mar 2021 10:13:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=B7=B2=E7=BB=93=E6=9D=9F=E7=9A=84=E6=8A=A5=E5=91=8A=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/components/PerformancePressureConfig.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue index c883b85358..9ff0c1afcb 100644 --- a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue @@ -178,8 +178,11 @@ export default { }, methods: { calculateLoadConfiguration: function (data) { - for (let i = 0; i < data.length; i++) { + for (let i = 0; i < this.threadGroups.length; i++) { let d = data[i]; + if (!d) { + return; + } d.forEach(item => { switch (item.key) { case TARGET_LEVEL: @@ -225,7 +228,7 @@ export default { default: break; } - }) + }); this.calculateChart(this.threadGroups[i]); }