fix(测试跟踪): 第三方平台缺陷保存后,描述会多添加双引号

--bug=1024826 --user=陈建星 【测试跟踪】项目集成jira-缺陷管理-创建缺陷-描述和环境为空和非空-创建成功显示为且保存一次就多一对 https://www.tapd.cn/55049933/s/1356267
This commit is contained in:
chenjianxing 2023-03-27 19:30:13 +08:00 committed by jianxing
parent 23d2864fc1
commit aaef0d7b16
1 changed files with 1 additions and 4 deletions

View File

@ -80,10 +80,7 @@ export function parseCustomField(data, template, rules, oldFields) {
let customField = data.fields[i]; let customField = data.fields[i];
if (customField.id === item.id) { if (customField.id === item.id) {
try { try {
if (item.type === "richText") { if (item.type === "textarea" || item.type === "richText") {
setDefaultValue(item, "\"" + customField.textValue + "\"");
} else if (item.type === "textarea") {
// 文本框类型取值为textValue
setDefaultValue(item, customField.textValue); setDefaultValue(item, customField.textValue);
} else { } else {
setDefaultValue(item, customField.value); setDefaultValue(item, customField.value);