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,6 +484,7 @@ export default {
item.issues.hasIssues = false;
}
item.steptResults = [];
if (item.steps) {
for (let i = 0; i < item.steps.length; i++) {
if (item.results[i]) {
item.steps[i].actualResult = item.results[i].actualResult;
@ -491,6 +492,7 @@ export default {
}
item.steptResults.push(item.steps[i]);
}
}
this.testCase = item;
this.initTest();
this.getIssues(testCase.caseId);