fix: 新建仪表板刷新浏览器第一次不出现问题

This commit is contained in:
wangjiahao 2021-12-28 17:03:48 +08:00
parent f47609fce5
commit 4cb9e722a5

View File

@ -392,6 +392,7 @@ export default {
this.editPanel.visible = false
if (panelInfo) {
this.defaultTree()
this.tree()
//
if (panelInfo && panelInfo.panelType === 'self' && this.lastActiveNodeData.id) {
if (this.editPanel.optType === 'rename') {
@ -409,8 +410,6 @@ export default {
this.lastActiveNode.expanded = true
}
this.activeNodeAndClick(panelInfo)
} else {
this.tree()
}
}
},