From aaef0d7b16bedd5be6e5cb64febf0fca049d14ce Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 27 Mar 2023 19:30:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=B9=B3=E5=8F=B0=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=90=8E=EF=BC=8C=E6=8F=8F=E8=BF=B0=E4=BC=9A?= =?UTF-8?q?=E5=A4=9A=E6=B7=BB=E5=8A=A0=E5=8F=8C=E5=BC=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024826 --user=陈建星 【测试跟踪】项目集成jira-缺陷管理-创建缺陷-描述和环境为空和非空-创建成功显示为且保存一次就多一对 https://www.tapd.cn/55049933/s/1356267 --- framework/sdk-parent/frontend/src/utils/custom_field.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/framework/sdk-parent/frontend/src/utils/custom_field.js b/framework/sdk-parent/frontend/src/utils/custom_field.js index fea0ccc3ef..d84b396484 100644 --- a/framework/sdk-parent/frontend/src/utils/custom_field.js +++ b/framework/sdk-parent/frontend/src/utils/custom_field.js @@ -80,10 +80,7 @@ export function parseCustomField(data, template, rules, oldFields) { let customField = data.fields[i]; if (customField.id === item.id) { try { - if (item.type === "richText") { - setDefaultValue(item, "\"" + customField.textValue + "\""); - } else if (item.type === "textarea") { - // 文本框类型取值为textValue + if (item.type === "textarea" || item.type === "richText") { setDefaultValue(item, customField.textValue); } else { setDefaultValue(item, customField.value);