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

@@ -935,7 +935,9 @@ export default {
// this.$refs.alertListTable.$refs.alertListTable.clearSelection()
// this.$refs.alertListScreenTable.$refs.dataTable.clearSelection()
this.screenPageObj = { ...this.pageObj }
this.$refs.screenPagination.pageSize = this.screenPageObj.pageSize
if (this.$refs.screenPagination && this.$refs.screenPagination.pageSize) {
this.$refs.screenPagination.pageSize = this.screenPageObj.pageSize
}
},
// 设置数据, filter区分
setData (chartItem, seriesItem, panelId, filter, area, errorMsg) {