From 9bf8109d9affc219d4f6dd81775a8b2be78e73c3 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 28 Feb 2023 18:23:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BA=E5=AF=8C=E6=96=87=E6=9C=AC=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023155 --user=宋昌昌 【测试跟踪】功能用例-进入用例编辑页面前端报错 https://www.tapd.cn/55049933/s/1344195 --- framework/sdk-parent/frontend/src/utils/custom_field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/utils/custom_field.js b/framework/sdk-parent/frontend/src/utils/custom_field.js index 64c1247f11..7417785485 100644 --- a/framework/sdk-parent/frontend/src/utils/custom_field.js +++ b/framework/sdk-parent/frontend/src/utils/custom_field.js @@ -81,7 +81,7 @@ export function parseCustomField(data, template, rules, oldFields) { if (customField.id === item.id) { try { if (item.type === "textarea" || item.type === "richText") { - setDefaultValue(item, customField.textValue); + setDefaultValue(item, "\"" + customField.textValue + "\""); } else { setDefaultValue(item, customField.value); }