NEZ-2239 fix: terminal 样式错误 以及地图resize 不生效
This commit is contained in:
@@ -2234,10 +2234,15 @@ export default {
|
||||
let domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect()
|
||||
getTopology(this.topologyIndex).canvasPos = domRect
|
||||
if (this.fromOverView) {
|
||||
if (this.oldTopologyData && !this.oldTopologyData.pens) {
|
||||
this.oldTopologyData.pens = []
|
||||
try {
|
||||
const obj = JSON.parse(this.oldTopologyData)
|
||||
if (obj && !obj.pens) {
|
||||
obj.pens = []
|
||||
}
|
||||
getTopology(this.topologyIndex).open(obj)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
getTopology(this.topologyIndex).open(this.oldTopologyData)
|
||||
}
|
||||
let flag = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user