From d60ffba0cbbc2832c8eb8257bf8daf1835d655a5 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 19 Oct 2022 10:30:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E5=A4=9A?= =?UTF-8?q?=E9=80=89=E5=AD=97=E6=AE=B5=E5=A4=84=E7=90=86=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018360 --user=宋昌昌 【测试跟踪】用例列表样式错乱,刷新浏览器或重新登录都无法恢复 https://www.tapd.cn/55049933/s/1266854 Co-authored-by: song-cc-rock --- .../frontend/src/utils/tableUtils.js | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/framework/sdk-parent/frontend/src/utils/tableUtils.js b/framework/sdk-parent/frontend/src/utils/tableUtils.js index 40a1562316..fd32403026 100644 --- a/framework/sdk-parent/frontend/src/utils/tableUtils.js +++ b/framework/sdk-parent/frontend/src/utils/tableUtils.js @@ -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) {