mirror of https://github.com/veops/cmdb.git
fix: topoview search error
This commit is contained in:
parent
4063b148a1
commit
3b7c1adfb4
|
@ -1225,7 +1225,7 @@ export default {
|
||||||
topoViewJsonData.nodes.keys().forEach((key) => {
|
topoViewJsonData.nodes.keys().forEach((key) => {
|
||||||
const node = topoViewJsonData?.nodes?.get(key)
|
const node = topoViewJsonData?.nodes?.get(key)
|
||||||
if (node?.data?.btnType !== 'more') {
|
if (node?.data?.btnType !== 'more') {
|
||||||
node.opacity = node?.text?.indexOf(v) !== -1 ? 1 : 0.1
|
node.opacity = `${node?.text ?? ''}`?.indexOf?.(v) !== -1 ? 1 : 0.1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const instance = this.$refs.showTopoView.getInstance()
|
const instance = this.$refs.showTopoView.getInstance()
|
||||||
|
|
Loading…
Reference in New Issue