Skip to content

Commit 155ba67

Browse files
committed
fix(ui): bug (#702)
1 parent 9c67b1e commit 155ba67

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmdb-ui/src/modules/cmdb/views/ci/modules/ciDetailRelation.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ export default {
132132
}
133133
134134
const _findCiType = ci_types_list.find((item) => item.id === this.typeId)
135-
const unique_id = _findCiType.show_id || this.attributes().unique_id
136-
const unique_name = _findCiType.show_name || this.attributes().unique
135+
const unique_id = _findCiType.show_id || _findCiType.unique_id
137136
const _findUnique = this.attrList().find((attr) => attr.id === unique_id)
137+
const unique_name = _findUnique?.name
138138
const unique_alias = _findUnique?.alias || _findUnique?.name || ''
139+
139140
const nodes = {
140141
isRoot: true,
141142
id: `Root_${this.typeId}`,

0 commit comments

Comments
 (0)