fix(接口定义): Swagger URL 导入或定时同步接口增加参数非空判断
This commit is contained in:
parent
d230853e86
commit
bc5381a7c4
|
@ -387,9 +387,11 @@
|
|||
// 设置 query 参数
|
||||
param.arguments = this.queryArguments;
|
||||
// 设置 BaseAuth 参数
|
||||
if(this.authConfig.authManager != undefined){
|
||||
this.authConfig.authManager.clazzName = TYPE_TO_C.get("AuthManager");
|
||||
param.authManager = this.authConfig.authManager;
|
||||
}
|
||||
}
|
||||
return param;
|
||||
},
|
||||
close() {
|
||||
|
|
|
@ -283,8 +283,10 @@ export default {
|
|||
this.formData.headers = this.headers;
|
||||
this.formData.arguments = this.queryArguments;
|
||||
// 设置 BaseAuth 参数
|
||||
if(this.authConfig.authManager != undefined){
|
||||
this.authConfig.authManager.clazzName = TYPE_TO_C.get("AuthManager");
|
||||
this.formData.authManager = this.authConfig.authManager;
|
||||
}
|
||||
let url = '';
|
||||
if (this.formData.id) {
|
||||
url = '/api/definition/schedule/update';
|
||||
|
|
Loading…
Reference in New Issue