fix(测试跟踪): 自定义文本框取值问题

--bug=1024866 --user=宋昌昌 【测试跟踪】功能用例-新建用例-文本框输入内容-保存后显示暂无 https://www.tapd.cn/55049933/s/1356210
This commit is contained in:
song-cc-rock 2023-03-27 18:27:56 +08:00 committed by jianxing
parent 023bce329f
commit 9da64c9d78
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ export function parseCustomField(data, template, rules, oldFields) {
try {
if (item.type === "richText") {
setDefaultValue(item, "\"" + customField.textValue + "\"");
} else if (item.type === "textarea") {
// 文本框类型取值为textValue
setDefaultValue(item, customField.textValue);
} else {
setDefaultValue(item, customField.value);
}