fix
This commit is contained in:
@@ -222,8 +222,9 @@ export class StateManager {
|
|||||||
|
|
||||||
/** 显示指定子节点和父节点连接线,隐藏父节点和其他子节点链接线, */
|
/** 显示指定子节点和父节点连接线,隐藏父节点和其他子节点链接线, */
|
||||||
showNodeConnections(id: string) {
|
showNodeConnections(id: string) {
|
||||||
|
if(!id) return
|
||||||
const node = this.getNodeById(id)
|
const node = this.getNodeById(id)
|
||||||
if(!node.data.superiorID) return
|
if(!node?.data?.superiorID) return
|
||||||
this.nodes.value.forEach((nodeItem) => {
|
this.nodes.value.forEach((nodeItem) => {
|
||||||
if(node.data.superiorID === nodeItem.data.superiorID && nodeItem.id == id) {
|
if(node.data.superiorID === nodeItem.data.superiorID && nodeItem.id == id) {
|
||||||
nodeItem.data.isActive = true
|
nodeItem.data.isActive = true
|
||||||
|
|||||||
Reference in New Issue
Block a user