fix(测试跟踪): 修复功能用例当testId字段为other时保存失败的问题

This commit is contained in:
zhangdahai112 2022-01-27 20:51:10 +08:00 committed by 刘瑞斌
parent 2a7db501c8
commit 3a0e887eec
1 changed files with 6 additions and 1 deletions

View File

@ -769,7 +769,12 @@ export default {
if (this.form.tags instanceof Array) {
this.form.tags = JSON.stringify(this.form.tags);
}
// 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';