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:26:11 +08:00 committed by wxg0103
parent b360a0f84d
commit 8adb5b1cbc
2 changed files with 2 additions and 4 deletions

View File

@ -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 = {};

View File

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