Skip to content

Commit

Permalink
fix(ui): topology view error
Browse files Browse the repository at this point in the history
  • Loading branch information
LHRUN committed Jun 20, 2024
1 parent 3fe0205 commit 06148b4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmdb-ui/src/modules/cmdb/views/topology_view/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,12 @@ export default {
'download image': '下载图片'
}

toolbarElements.forEach((toolbarElement) => {
if (toolbarElement?.children?.length) {
toolbarElement.children.forEach((node) => {
const toolbarElementArray = Array.from(toolbarElements ?? [])
toolbarElementArray.forEach((toolbarElement) => {
const childArray = Array.from(toolbarElement?.children || [])

if (childArray?.length) {
childArray.forEach((node) => {
const oldTitle = node?.getAttribute('title')
if (oldTitle) {
const newTitle = lang === 'en' ? zhlangMap[oldTitle] : enlangMap[oldTitle]
Expand Down Expand Up @@ -1441,7 +1444,7 @@ export default {
border-width: 2px;
border-style: solid;
background-color: transparent;
position: relative;
position: relative !important;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 06148b4

Please sign in to comment.