fix(系统设置): 修复复制环境,切换项目http请求头丢失的缺陷
--bug=1018884 --user=王孝刚 【系统设置】github#18884,工作空间下环境管理复制环境-复制时选择另一个项目,导致复制后的环境HTTP请求头丢失 https://www.tapd.cn/55049933/s/1277542
This commit is contained in:
parent
b360a0f84d
commit
8adb5b1cbc
|
@ -285,6 +285,7 @@ export default {
|
|||
},
|
||||
|
||||
copyEnv(environment) {
|
||||
this.ifCreate = true;
|
||||
this.currentProjectId = environment.projectId; //复制时默认选择所要复制环境对应的项目
|
||||
this.dialogTitle = this.$t('api_test.environment.copy_environment');
|
||||
const temEnv = {};
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
<el-col :span="20">
|
||||
<el-form label-width="80px" :rules="rules" style="display: flow-root">
|
||||
<el-form-item class="project-item" prop="currentProjectId" :label="$t('project.select')">
|
||||
<el-select @change="handleProjectChange" v-model="currentProjectId" filterable clearable>
|
||||
<el-select v-model="currentProjectId" filterable clearable :disabled="!ifCreate">
|
||||
<el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -415,9 +415,6 @@ export default {
|
|||
downloadFile('MS_' + envs.length + '_Environments.json', JSON.stringify(envs));
|
||||
},
|
||||
|
||||
handleProjectChange() { //项目选择下拉框选择其他项目后清空“启用条件”,因为项目变了模块也就变了。
|
||||
this.currentEnvironment.config.httpConfig.conditions = [];
|
||||
},
|
||||
parseDomainName(environment) { //解析出环境域名用于前端展示
|
||||
if (environment.config) {
|
||||
const config = JSON.parse(environment.config);
|
||||
|
|
Loading…
Reference in New Issue