fix(测试跟踪): 功能用例列表多选字段处理导致样式问题

--bug=1018360 --user=宋昌昌 【测试跟踪】用例列表样式错乱,刷新浏览器或重新登录都无法恢复 https://www.tapd.cn/55049933/s/1266854

Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2022-10-19 10:30:56 +08:00 committed by GitHub
parent 96be530110
commit d60ffba0cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -466,16 +466,18 @@ export function getCustomFieldValue(row, field, members) {
}
} else if (field.type === 'multipleMember') {
let values = '';
item.value.forEach(v => {
for (let j = 0; j < members.length; j++) {
let member = members[j];
if (member.id === v) {
values += member.name;
values += " ";
break;
if (item.value.length > 0) {
item.value.forEach(v => {
for (let j = 0; j < members.length; j++) {
let member = members[j];
if (member.id === v) {
values += member.name;
values += " ";
break;
}
}
}
});
});
}
return values;
} else if (['radio', 'select'].indexOf(field.type) > -1) {
if (field.options) {