diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 15bc7e436f..252aab4f85 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -1790,6 +1790,11 @@ export default { scenario = runScenario; this.runScenario = runScenario; } + if (runScenario && runScenario.type === 'scenario' && !hasRequest) { + this.sort(this.runScenario.hashTree); + } else { + this.sort(); + } //调试时不再保存 this.debugData = { id: scenario ? scenario.id : this.currentScenario.id, diff --git a/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue b/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue index a7b537fe2d..e867b78113 100644 --- a/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue +++ b/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue @@ -454,10 +454,6 @@ export default { selectEnvId = store.scenarioEnvMap.get(this.currentScenario.id + '_' + this.request.projectId); this.environmentMap = this.envMap; } - if (!selectEnvId && !this.environmentGroupId) { - this.$warning(this.$t('api_test.automation.env_message')); - return false; - } } } if (!this.request.enable) {