fix: 修复 chart-list 因字段判断 undefined 报错

This commit is contained in:
@changcode
2021-11-26 16:03:19 +08:00
parent 81f205a637
commit 463a66847d
3 changed files with 7 additions and 3 deletions

View File

@@ -358,7 +358,9 @@ export default {
},
initDialog () {
// 此时初始化才能获得screenShowArea对象否则此对象为undefined无法初始化图表
this.$refs.pickTime.$refs.timePicker.setCustomTime()
if (this.$refs.pickTime) {
this.$refs.pickTime.$refs.timePicker.setCustomTime()
}
const chartType = this.chart.type
if (chartType === 'table') {
//