diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue index fb2e7b849d..c1faf88ffb 100644 --- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue +++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue @@ -4,7 +4,7 @@ - @@ -509,9 +509,6 @@ export default { clearValidate() { this.$refs["environment"].clearValidate(); }, - handleProjectChange() { //项目选择下拉框选择其他项目后清空“启用条件”,因为项目变了模块也就变了。 - this.environment.config.httpConfig.conditions = []; - }, }, } diff --git a/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue b/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue index 7b87915013..cba9c6fbf3 100644 --- a/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue +++ b/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue @@ -333,6 +333,7 @@ export default { this.$refs.environmentEdit.save(); }, copyEnv(environment) { + this.ifCreate = true; this.currentProjectId = environment.projectId; //复制时默认选择所要复制环境对应的项目 environment.currentProjectId = environment.projectId; this.dialogTitle = this.$t('api_test.environment.copy_environment');