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

@@ -979,7 +979,7 @@ export default {
self.$refs['localLoading' + self.chartIndex].endLoading() self.$refs['localLoading' + self.chartIndex].endLoading()
self.firstShow = true // 展示操作按键 self.firstShow = true // 展示操作按键
}, 100) }, 800)
window.addEventListener('resize', this.chartResize) window.addEventListener('resize', this.chartResize)
getChart(this.chartIndex).on('magictypechanged', function (params) { getChart(this.chartIndex).on('magictypechanged', function (params) {

View File

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