fix:dashboard跳转调用clearTopology

This commit is contained in:
zyh
2023-04-06 17:48:31 +08:00
parent 6dae7ed6e5
commit 323006efda
6 changed files with 14 additions and 17 deletions

View File

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