fix(系统设置): 修复复制环境切换项目时环境http丢失的缺陷的缺陷
--bug=1018884 --user=王孝刚 【系统设置】github#18884,工作空间下环境管理复制环境-复制时选择另一个项目,导致复制后的环境HTTP请求头丢失 https://www.tapd.cn/55049933/s/1277542
This commit is contained in:
parent
6ea96d35f8
commit
89bf33719e
|
@ -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>
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue