fix(测试跟踪): 修复功能用例当testId字段为other时保存失败的问题
This commit is contained in:
parent
2a7db501c8
commit
3a0e887eec
|
@ -769,7 +769,12 @@ export default {
|
|||
if (this.form.tags instanceof Array) {
|
||||
this.form.tags = JSON.stringify(this.form.tags);
|
||||
}
|
||||
param.testId = JSON.stringify(this.form.selected);
|
||||
//当 testId 为其他信息的时候必须删除该字段避免后端反序列化报错
|
||||
if ("other" != this.form.selected) {
|
||||
param.testId = JSON.stringify(this.form.selected);
|
||||
}else{
|
||||
delete param.selected;
|
||||
}
|
||||
param.tags = this.form.tags;
|
||||
param.casePublic = this.casePublic;
|
||||
param.type = 'functional';
|
||||
|
|
Loading…
Reference in New Issue