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 {