Merge branch 'cjc' into 'main'

修改指针高亮的bug

See merge request phenomLi/StructV2!20
This commit is contained in:
cjc
2022-04-15 12:03:05 +00:00
+1 -1
View File
@@ -77,7 +77,7 @@ export class SVLink extends SVModel {
} }
isEqual(link: SVLink): boolean { isEqual(link: SVLink): boolean {
return link.targetId === this.targetId && link.nodeId === this.nodeId && link.linkIndex === this.linkIndex; return (link.sourceType.includes(this.sourceType.toLocaleLowerCase())|| this.sourceType.includes(link.sourceType.toLowerCase())) && link.targetId === this.targetId && link.nodeId === this.nodeId && link.linkIndex === this.linkIndex;
} }
beforeDestroy(): void { beforeDestroy(): void {