fix(测试跟踪): 测试计划执行测试用例,用例评审执行评审报错
--bug=1007804 --user=lyh 【测试跟踪】测试计划执行测试用例,用例评审执行评审,报错 https://www.tapd.cn/55049933/s/1066045
This commit is contained in:
parent
39e9e294bd
commit
ccb05595dd
|
@ -60,7 +60,11 @@ export function parseCustomField(data, template, customFieldForm, rules, oldFiel
|
|||
if (customField.name === item.name) {
|
||||
if (customField.type === 'multipleSelect') {
|
||||
if (typeof (customField.value) === 'string' || customField.value instanceof String) {
|
||||
customField.value = JSON.parse(customField.value);
|
||||
try {
|
||||
customField.value = JSON.parse(customField.value);
|
||||
} catch (e) {
|
||||
console.log("JSON parse custom field value error.");
|
||||
}
|
||||
}
|
||||
}
|
||||
setDefaultValue(item, customField.value);
|
||||
|
|
Loading…
Reference in New Issue