fix(测试跟踪): 编辑用例报错

This commit is contained in:
chenjianxing 2020-12-04 10:55:51 +08:00
parent 897017be77
commit 5b41a76935
1 changed files with 7 additions and 5 deletions

View File

@ -484,12 +484,14 @@ export default {
item.issues.hasIssues = false;
}
item.steptResults = [];
for (let i = 0; i < item.steps.length; i++) {
if (item.results[i]) {
item.steps[i].actualResult = item.results[i].actualResult;
item.steps[i].executeResult = item.results[i].executeResult;
if (item.steps) {
for (let i = 0; i < item.steps.length; i++) {
if (item.results[i]) {
item.steps[i].actualResult = item.results[i].actualResult;
item.steps[i].executeResult = item.results[i].executeResult;
}
item.steptResults.push(item.steps[i]);
}
item.steptResults.push(item.steps[i]);
}
this.testCase = item;
this.initTest();