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:
parent
d05189ff43
commit
c3ce09b299
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue