fix(测试跟踪): 复制用例不添加到用例库
--bug=1023690 --user=陈建星 【测试跟踪】功能用例-公共用例库列表-操作-复制/查看详情-复制-复制的用例保持后自动添加到公共用例库了 https://www.tapd.cn/55049933/s/1341304
This commit is contained in:
parent
b2281fa62b
commit
e9533a097d
|
@ -606,9 +606,6 @@ export default {
|
|||
isCopy() {
|
||||
return this.editType == 'copy';
|
||||
},
|
||||
publicEnable() {
|
||||
return this.editType == 'public';
|
||||
},
|
||||
showPublic() {
|
||||
return this.isPublic && this.isXpack;
|
||||
},
|
||||
|
@ -1049,6 +1046,7 @@ export default {
|
|||
item.isEdit = false;
|
||||
});
|
||||
this.form.id = null;
|
||||
testCase.casePublic = false;
|
||||
}
|
||||
this.currentTestCaseInfo = testCase;
|
||||
this.setFormData(testCase);
|
||||
|
@ -1208,14 +1206,8 @@ export default {
|
|||
param.steps = JSON.stringify(this.form.steps);
|
||||
param.nodeId = this.form.module;
|
||||
param.copyCaseId = this.caseId;
|
||||
if (!this.publicEnable) {
|
||||
if (this.projectId) {
|
||||
param.projectId = this.projectId;
|
||||
}
|
||||
}
|
||||
if (this.publicEnable) {
|
||||
this.casePublic = true;
|
||||
}
|
||||
param.projectId = this.projectId;
|
||||
|
||||
param.name = param.name.trim();
|
||||
if (this.form.tags instanceof Array) {
|
||||
param.tags = JSON.stringify(this.form.tags);
|
||||
|
|
Loading…
Reference in New Issue