fix(接口测试): 解决swagger文件导入页面400错误
--user=郭雨琦 --bug=1013871 swagger文件导入,接口报500“解析数据出错”,后面再导入接口都返回400 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013871
This commit is contained in:
parent
fee36168e5
commit
59b821f9a0
|
@ -424,7 +424,11 @@ export default {
|
|||
param.saved = this.saved;
|
||||
param.model = this.model;
|
||||
if (this.currentModule) {
|
||||
param.moduleId = this.formData.moduleId
|
||||
if (!this.formData.moduleId || this.formData.moduleId.length === 0) {
|
||||
param.moduleId = this.currentModule[0].id;
|
||||
} else {
|
||||
param.moduleId= this.formData.moduleId
|
||||
}
|
||||
param.modeId = this.formData.modeId
|
||||
}
|
||||
param.projectId = this.projectId;
|
||||
|
|
Loading…
Reference in New Issue