From 15e7aabb03ccc204ef32e1f4bba44de14125b7ad Mon Sep 17 00:00:00 2001 From: cjc <431909623@qq.com> Date: Sat, 16 Apr 2022 22:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E5=8C=96=E7=9A=84?= =?UTF-8?q?=E8=BE=B9=E9=AB=98=E4=BA=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- copyDist2Anyview.js | 4 ++-- src/Model/SVLink.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copyDist2Anyview.js b/copyDist2Anyview.js index bd475e3..5550fb7 100644 --- a/copyDist2Anyview.js +++ b/copyDist2Anyview.js @@ -1,6 +1,6 @@ const fs = require('fs'); -const sourcePath = 'D:\\个人项目\\v\\StructV2\\dist\\sv.js'; -const targetPath = 'D:\\个人项目\\froend_student\\src\\pages\\student\\assets\\js\\sv.js' +const sourcePath = 'E:\\研究生\\StructV2\\dist\\sv.js'; +const targetPath = 'E:\\研究生\\froend_student\\src\\pages\\student\\assets\\js\\sv.js' function COPY(from, to) { diff --git a/src/Model/SVLink.ts b/src/Model/SVLink.ts index ae1f9ee..974075c 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.sourceType.includes(this.sourceType.toLocaleLowerCase())|| this.sourceType.includes(link.sourceType.toLowerCase())) && link.targetId === this.targetId && link.nodeId === this.nodeId && link.linkIndex === this.linkIndex; + return (link.sourceType.toLowerCase().includes(this.sourceType.toLocaleLowerCase())|| this.sourceType.toLowerCase().includes(link.sourceType.toLowerCase())) && link.targetId === this.targetId && link.nodeId === this.nodeId && link.linkIndex === this.linkIndex; } beforeDestroy(): void {