From 3182e52b4fd5568a5325d0d33bf08121b8a2b294 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 7 Jun 2021 11:34:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AD=A5=E9=AA=A4=E4=B8=AD=E7=9A=84=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=20refactor:=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE=E5=88=9B=E5=BB=BA=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/report/ApiReportDetail.vue | 660 ++--- .../automation/scenario/EditApiScenario.vue | 2119 ++++++++--------- .../scenario/component/ApiComponent.vue | 4 +- .../scenario/maximize/MaximizeScenario.vue | 1905 ++++++++------- 4 files changed, 2343 insertions(+), 2345 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index 5f3bba8a44..ec80eb4a03 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -30,365 +30,365 @@ diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 5e46b1025d..3519d621c9 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -5,7 +5,7 @@
- {{$t('operating_log.change_history')}} + {{ $t('operating_log.change_history') }} @@ -118,7 +118,7 @@ - {{$t('api_test.automation.step_total')}}:{{scenarioDefinition.length}} + {{ $t('api_test.automation.step_total') }}:{{ scenarioDefinition.length }} {{ $t('api_test.automation.scenario_total') }} @@ -148,10 +148,10 @@
- {{$t('api_test.automation.open_expansion')}} + {{ $t('api_test.automation.open_expansion') }} - {{$t('api_test.automation.close_expansion')}} + {{ $t('api_test.automation.close_expansion') }} diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index ff1272a34b..0f535209c5 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -336,10 +336,10 @@ export default { if (this.node) { this.node.expanded = this.request.active; } - if (this.node.expanded && this.expandedNode.indexOf(this.request.resourceId) === -1) { + if (this.node.expanded && this.expandedNode && this.expandedNode.indexOf(this.request.resourceId) === -1) { this.expandedNode.push(this.request.resourceId); } else { - if (this.expandedNode.indexOf(this.request.resourceId) !== -1) { + if (this.expandedNode && this.expandedNode.indexOf(this.request.resourceId) !== -1) { this.expandedNode.splice(this.expandedNode.indexOf(this.request.resourceId), 1); } } diff --git a/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue b/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue index 4c6115de74..15eddbb5b3 100644 --- a/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue @@ -6,10 +6,10 @@
- {{$t('api_test.automation.open_expansion')}} + {{ $t('api_test.automation.open_expansion') }} - {{$t('api_test.automation.close_expansion')}} + {{ $t('api_test.automation.close_expansion') }}