fix(测试跟踪): 复制功能用例没有复制自定义字段
--bug=1016594 --user=陈建星 【测试跟踪】github#17671,功能用例,复制的功能用例,单选下拉列表类型的字段值没有成功复制 https://www.tapd.cn/55049933/s/1239853
This commit is contained in:
parent
c4f46e2b92
commit
1c75776ede
|
@ -613,6 +613,7 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.showInputTag = true;
|
this.showInputTag = true;
|
||||||
});
|
});
|
||||||
|
this.form.id = null;
|
||||||
} else {
|
} else {
|
||||||
this.getTestCase(testCase.id);
|
this.getTestCase(testCase.id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ export function buildCustomFields(data, param, template) {
|
||||||
} else {
|
} else {
|
||||||
customField['value'] = item.defaultValue ? JSON.stringify(item.defaultValue): "";
|
customField['value'] = item.defaultValue ? JSON.stringify(item.defaultValue): "";
|
||||||
}
|
}
|
||||||
if (item.isEdit) {
|
if (item.isEdit && data.id) {
|
||||||
editFields.push(customField);
|
editFields.push(customField);
|
||||||
} else {
|
} else {
|
||||||
addFields.push(customField);
|
addFields.push(customField);
|
||||||
|
|
Loading…
Reference in New Issue