fix(系统设置): 修复复制环境切换项目时环境http丢失的缺陷的缺陷

--bug=1018884 --user=王孝刚
【系统设置】github#18884,工作空间下环境管理复制环境-复制时选择另一个项目,导致复制后的环境HTTP请求头丢失
https://www.tapd.cn/55049933/s/1277542
This commit is contained in:
wxg0103 2022-10-26 10:11:07 +08:00 committed by 刘瑞斌
parent e019033baa
commit 8d7847522c
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<el-row>
<el-col :span="10" v-if="!isProject">
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
<el-select @change="handleProjectChange" v-model="environment.currentProjectId" filterable clearable
<el-select v-model="environment.currentProjectId" filterable clearable
size="small" :disabled="!ifCreate">
<el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
@ -509,9 +509,6 @@ export default {
clearValidate() {
this.$refs["environment"].clearValidate();
},
handleProjectChange() { //,
this.environment.config.httpConfig.conditions = [];
},
},
}
</script>

View File

@ -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');