fix: 实体关系图优化问题修改:上一步下一步问题修改(拓展节点时,显示已拓展类型临时节点)

This commit is contained in:
hanyuxia
2024-06-25 10:48:56 +08:00
parent f1cef07522
commit c4cb007023

View File

@@ -79,9 +79,9 @@ export default class Node {
const neighboringTargetLinks = []
const neighboringSourceLinks = []
const neighboringLinks = links.filter(l => {
if (l.target === this || l.source === this) {
neighboringNodes.push(l.target === this ? l.source : l.target)
if (l.target === this) {
if (l.target.id === this.id || l.source.id === this.id) {
neighboringNodes.push(l.target.id === this.id ? l.source : l.target)
if (l.target.id === this.id) {
neighboringSourceNodes.push(l.source)
neighboringSourceLinks.push(l)
} else {