fix(测试跟踪): 测试计划执行测试用例,用例评审执行评审报错

--bug=1007804 --user=lyh 【测试跟踪】测试计划执行测试用例,用例评审执行评审,报错
https://www.tapd.cn/55049933/s/1066045
This commit is contained in:
shiziyuan9527 2021-11-10 16:39:50 +08:00 committed by shiziyuan9527
parent 39e9e294bd
commit ccb05595dd
1 changed files with 5 additions and 1 deletions

View File

@ -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);