fix:解决控制台报错的问题
This commit is contained in:
@@ -702,6 +702,7 @@
|
|||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this_.setData();
|
this_.setData();
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
if(this_.network){
|
||||||
this_.zoom=this_.network.view.targetScale;
|
this_.zoom=this_.network.view.targetScale;
|
||||||
this_.network.moveTo({
|
this_.network.moveTo({
|
||||||
// position: this_.viewsCenter,
|
// position: this_.viewsCenter,
|
||||||
@@ -711,6 +712,7 @@
|
|||||||
this_.modelTopUpdate();
|
this_.modelTopUpdate();
|
||||||
this_.selNodeArrUpdate();
|
this_.selNodeArrUpdate();
|
||||||
this_.networkPopShow=false;
|
this_.networkPopShow=false;
|
||||||
|
}
|
||||||
},100)
|
},100)
|
||||||
});
|
});
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -732,8 +732,10 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
beforeDestroy(){
|
beforeDestroy(){
|
||||||
|
if(document.querySelector("#tableList")){
|
||||||
document.querySelector("#tableList").removeEventListener("mouseenter", this.tableListEnter);
|
document.querySelector("#tableList").removeEventListener("mouseenter", this.tableListEnter);
|
||||||
document.querySelector("#tableList").removeEventListener("mouseleave", this.tableListLeave);
|
document.querySelector("#tableList").removeEventListener("mouseleave", this.tableListLeave);
|
||||||
|
}
|
||||||
this.scrollbarWrap.removeEventListener('scroll', bus.debounce);
|
this.scrollbarWrap.removeEventListener('scroll', bus.debounce);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user