fix: 修复查看已结束的报告报错

This commit is contained in:
Captain.B 2021-03-10 10:13:04 +08:00
parent 7e7433f801
commit 8bf4ce16a6
1 changed files with 5 additions and 2 deletions

View File

@ -178,8 +178,11 @@ export default {
}, },
methods: { methods: {
calculateLoadConfiguration: function (data) { calculateLoadConfiguration: function (data) {
for (let i = 0; i < data.length; i++) { for (let i = 0; i < this.threadGroups.length; i++) {
let d = data[i]; let d = data[i];
if (!d) {
return;
}
d.forEach(item => { d.forEach(item => {
switch (item.key) { switch (item.key) {
case TARGET_LEVEL: case TARGET_LEVEL:
@ -225,7 +228,7 @@ export default {
default: default:
break; break;
} }
}) });
this.calculateChart(this.threadGroups[i]); this.calculateChart(this.threadGroups[i]);
} }