mirror of https://github.com/veops/cmdb.git
fix(ui): topology view error
This commit is contained in:
parent
3fe020505a
commit
06148b402d
|
@ -1252,9 +1252,12 @@ export default {
|
||||||
'download image': '下载图片'
|
'download image': '下载图片'
|
||||||
}
|
}
|
||||||
|
|
||||||
toolbarElements.forEach((toolbarElement) => {
|
const toolbarElementArray = Array.from(toolbarElements ?? [])
|
||||||
if (toolbarElement?.children?.length) {
|
toolbarElementArray.forEach((toolbarElement) => {
|
||||||
toolbarElement.children.forEach((node) => {
|
const childArray = Array.from(toolbarElement?.children || [])
|
||||||
|
|
||||||
|
if (childArray?.length) {
|
||||||
|
childArray.forEach((node) => {
|
||||||
const oldTitle = node?.getAttribute('title')
|
const oldTitle = node?.getAttribute('title')
|
||||||
if (oldTitle) {
|
if (oldTitle) {
|
||||||
const newTitle = lang === 'en' ? zhlangMap[oldTitle] : enlangMap[oldTitle]
|
const newTitle = lang === 'en' ? zhlangMap[oldTitle] : enlangMap[oldTitle]
|
||||||
|
@ -1441,7 +1444,7 @@ export default {
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
position: relative;
|
position: relative !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in New Issue