fix: 修复实体详情对于自定义tag标签颜色显示异常的问题

This commit is contained in:
刘洪洪
2024-02-20 11:01:13 +08:00
parent d0b29c24ba
commit b7c0b74247
2 changed files with 7 additions and 3 deletions

View File

@@ -1534,7 +1534,7 @@ export const formatTagsOfDetails = (data, type, list) => {
intelligenceContent: []
}
if (k === 'userDefinedTag') {
aggregation.intelligenceContent.push({ key: k, value: r[k].tagValue, type: 'normal' })
aggregation.intelligenceContent.push({ key: k, value: r[k].tagValue, type: 'normal', color: r[k].knowledgeBase ? (r[k].knowledgeBase.color || entityDefaultColor) : entityDefaultColor })
} else {
if (_.isArray(r[k])) {
r[k].forEach(k3 => {