NEZ-2891 fix:chart-diagram 点击编辑 后直接退出 缩放后 节点位置不正确

This commit is contained in:
zhangyu
2023-06-20 11:10:13 +08:00
parent 0f130f61f3
commit b6c29c8542
3 changed files with 11 additions and 10 deletions

View File

@@ -217,14 +217,10 @@ export default {
getTopology(this.meta2dId).off('leave', this.penLeave) // 移出画笔·
getTopology(this.meta2dId).off('add', this.appPen) // 添加新画笔·
getTopology(this.meta2dId).off('click', this.topoClick) // click画笔·
if (this.isChart) {
getTopology(this.meta2dId).destroy()
} else {
getTopology(this.meta2dId).destroy(true)
for (const k in globalStore) {
if (!globalStore[k]) {
delete globalStore[k]
}
getTopology(this.meta2dId).destroy(true)
for (const k in globalStore) {
if (!globalStore[k]) {
delete globalStore[k]
}
}
setTopology(this.meta2dId, null)