Merge branch 'cjc' into 'main'

修改变化的边高亮的bug

See merge request phenomLi/StructV2!21
This commit is contained in:
chen jiancheng 2022-04-20 08:26:07 +00:00
commit 87a39945d0
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
const fs = require('fs'); const fs = require('fs');
const sourcePath = 'D:\\个人项目\\v\\StructV2\\dist\\sv.js'; const sourcePath = 'E:\\研究生\\StructV2\\dist\\sv.js';
const targetPath = 'D:\\个人项目\\froend_student\\src\\pages\\student\\assets\\js\\sv.js' const targetPath = 'E:\\研究生\\froend_student\\src\\pages\\student\\assets\\js\\sv.js'
function COPY(from, to) { function COPY(from, to) {

View File

@ -77,7 +77,7 @@ export class SVLink extends SVModel {
} }
isEqual(link: SVLink): boolean { 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 { beforeDestroy(): void {