Merge pull request #575 from veops/dev_ui_240710

fix: topoview search error
This commit is contained in:
Leo Song 2024-07-10 10:12:11 +08:00 committed by GitHub
commit ba1064495b
1 changed files with 1 additions and 1 deletions

View File

@ -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()