NEZ-1170 fix:Project topo perview 不显示或显示有误

This commit is contained in:
zhangyu
2021-11-04 15:57:54 +08:00
parent 643e692125
commit 774e80505a

View File

@@ -1906,6 +1906,8 @@ export default {
saveTopology () { saveTopology () {
this.previewData = '' this.previewData = ''
this.isPreview = false this.isPreview = false
this.editTopologyFlag = true
this.showNoData = false
const topologyData = getTopology(this.topologyIndex).pureData() const topologyData = getTopology(this.topologyIndex).pureData()
let flag = true let flag = true
const arr = [] const arr = []
@@ -2050,7 +2052,7 @@ export default {
getTopology(this.topologyIndex).lock(1) getTopology(this.topologyIndex).lock(1)
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect() const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
getTopology(this.topologyIndex).canvasPos = domRect getTopology(this.topologyIndex).canvasPos = domRect
this.reload() // this.reload()
}) })
}, },
previewExit () { // 继续编辑 previewExit () { // 继续编辑