mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 16:12:55 +00:00
fix: 连线错误
This commit is contained in:
parent
aa99367b9c
commit
b69378b03e
|
|
@ -126,7 +126,7 @@ class AppNodeModel extends HtmlResize.model {
|
|||
this.sourceRules.push({
|
||||
message: '只允许连一个节点',
|
||||
validate: (sourceNode: any, targetNode: any, sourceAnchor: any) => {
|
||||
return !this.graphModel.edges.some((item) => item.sourceNodeId === sourceNode.id)
|
||||
return !this.graphModel.edges.some((item) => item.sourceAnchorId === sourceAnchor.id)
|
||||
}
|
||||
})
|
||||
this.sourceRules.push(circleOnlyAsTarget)
|
||||
|
|
|
|||
Loading…
Reference in New Issue