fix(接口测试): 修复swagger定时同步页面请求参数开关会导致请求参数数据丢失的问题 (#14591)

--bug=1013892 --user=宋天阳
【接口测试】github#14477,已经保存过的swagger定时同步任务,请求参数开关关闭后再开启,以前的信息保留
https://www.tapd.cn/55049933/s/1177568

Co-authored-by: song-tianyang <tianyang.song@fit2cloud.com>
Co-authored-by: 刘瑞斌 <bin@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2022-06-10 16:22:17 +08:00 committed by GitHub
parent d05189ff43
commit c3ce09b299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 10 deletions

View File

@ -32,8 +32,7 @@
</el-col>
<el-col :span="12" style="margin-left: 50px">
<el-switch v-model="authEnable" :active-text="$t('api_test.api_import.add_request_params')"
@change="changeAuthEnable"></el-switch>
<el-switch v-model="authEnable" :active-text="$t('api_test.api_import.add_request_params')"></el-switch>
</el-col>
<el-col :span="19" v-show="authEnable" style="margin-top: 10px; margin-left: 50px" class="request-tabs">
@ -175,10 +174,9 @@ export default {
callback(new Error(this.$t('schedule.cron_expression_format_error')));
} else if (!customValidate.pass) {
callback(new Error(customValidate.info));
}else if(!this.intervalValidate()){
} else if (!this.intervalValidate()) {
callback(new Error(this.$t('schedule.cron_expression_interval_error')));
}
else {
} else {
callback();
}
};
@ -258,11 +256,6 @@ export default {
currentUser: () => {
return getCurrentUser();
},
changeAuthEnable() {
if (!this.authEnable) {
this.clearAuthInfo();
}
},
clear() {
this.formData.id = null;
this.formData.moduleId = null;