NEZ-734 fix:修改project topo居中的问题
This commit is contained in:
@@ -541,10 +541,10 @@ export default {
|
||||
immediate: true,
|
||||
handler (n) {
|
||||
if (n && n.id) {
|
||||
if (getTopology(this.topologyIndex)) {
|
||||
getTopology(this.topologyIndex).destroy()
|
||||
setTopology(this.topologyIndex, null)
|
||||
}
|
||||
// if (getTopology(this.topologyIndex)) {
|
||||
// getTopology(this.topologyIndex).destroy()
|
||||
// setTopology(this.topologyIndex, null)
|
||||
// }
|
||||
if (!this.objChange) {
|
||||
this.editTopologyFlag = false
|
||||
this.topologyLoading = true
|
||||
@@ -690,6 +690,7 @@ export default {
|
||||
flag = true
|
||||
}
|
||||
})
|
||||
getTopology(this.topologyIndex).resize()
|
||||
getTopology(this.topologyIndex).centerView()
|
||||
this.penToolTipScale = getTopology(this.topologyIndex).data.scale
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user