From 5b41a769354fa8fe23796cb77bbc1b83a468d445 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 4 Dec 2020 10:55:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=94=A8=E4=BE=8B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/view/comonents/TestPlanTestCaseEdit.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue index c2fe737e3d..dbf0b890b0 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -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();