From b2aee6ed0a5241615ddd5cc50206345a83459db3 Mon Sep 17 00:00:00 2001 From: cjc <431909623@qq.com> Date: Fri, 15 Apr 2022 20:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=87=E9=92=88=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Model/SVLink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/SVLink.ts b/src/Model/SVLink.ts index 70cb6b4..ae1f9ee 100644 --- a/src/Model/SVLink.ts +++ b/src/Model/SVLink.ts @@ -77,7 +77,7 @@ export class SVLink extends SVModel { } 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 {