diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 3f83d27b68..a7494a148b 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -205,12 +205,14 @@ :project-list="projectList" :env-map="projectEnvMap" :env-group-id="envGroupId" + :environment-type="environmentType" @remove="remove" @copyRow="copyRow" @suggestClick="suggestClick" @refReload="refReload" @runScenario="runDebug" @stopScenario="stop" + @setDomain="setDomain" @openScenario="openScenario"/> @@ -528,7 +530,7 @@ export default { currentUser: () => { return getCurrentUser(); }, - setDomain(flag) { + setDomain() { if (this.projectEnvMap && this.projectEnvMap.size > 0) { let scenario = { id: this.currentScenario.id, diff --git a/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue b/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue index 24259f12a2..b4a45b1bfd 100644 --- a/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue +++ b/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue @@ -9,7 +9,7 @@ - + {{ $t('api_test.request.refer_to_environment') }} @@ -123,6 +123,9 @@ export default { this.$error(this.$t('api_test.request.url_invalid'), 2000); } }, + setDomain() { + this.$emit("setDomain"); + } } } 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 31c3140d60..6fcba534c1 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -52,7 +52,7 @@