NEZ-663 fix: 修改部分报错问题

This commit is contained in:
chenjinsong
2021-05-26 14:15:35 +08:00
parent a2dd3bd598
commit b31090db5d
2 changed files with 4 additions and 2 deletions

View File

@@ -514,7 +514,9 @@ export default {
this.filter.panelId = this.showPanel.id
}
this.$nextTick(() => {
this.$refs.selectPanel.$refs.panelTree.setCurrentKey(this.showPanel)
try {
this.$refs.selectPanel.$refs.panelTree.setCurrentKey(this.showPanel)
} catch (e) {}
})
} else {
this.showPanel.id = ''