From 806772a339d68fd6baa3c4189165bf123c0aee4d Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 25 Mar 2021 14:54:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DplanId=E5=8F=AF=E8=83=BD=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=90=8E=E5=8F=B0=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/api/TestPlanApiCaseList.vue | 3 +++ .../plan/view/comonents/functional/FunctionalTestCaseList.vue | 3 +++ .../track/plan/view/comonents/load/TestPlanLoadCaseList.vue | 3 +++ 3 files changed, 9 insertions(+) diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue index 4de7dd0303..4fab18c445 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue @@ -524,6 +524,9 @@ export default { }); }, autoCheckStatus() { // 检查执行结果,自动更新计划状态 + if (!this.planId) { + return; + } this.$post('/test/plan/autoCheck/' + this.planId, (response) => { }); }, diff --git a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue index b3e25ac688..3913a5eb37 100644 --- a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue @@ -484,6 +484,9 @@ export default { getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE); }, autoCheckStatus() { + if (!this.planId) { + return; + } this.$post('/test/plan/autoCheck/' + this.planId, (response) => { }); }, diff --git a/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue index a6ecaf0e0b..7f38eb878a 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue @@ -251,6 +251,9 @@ export default { }, autoCheckStatus() { + if (!this.planId) { + return; + } this.$post('/test/plan/autoCheck/' + this.planId, (response) => { }); },