fix: 修复dns仪表盘切换时间不生效的问题

(cherry picked from commit 84ca05dccc)
This commit is contained in:
chenjinsong
2023-02-03 16:38:24 +08:00
committed by 陈劲松
parent 822e7bd9aa
commit a7e06c6ffa
2 changed files with 4 additions and 4 deletions

View File

@@ -114,8 +114,8 @@ export default {
},
reload () {
this.copyDataList.forEach(item => {
if (this.$refs['chart' + item.id]) {
this.$refs['chart' + item.id].reload()
if (this.$refs['chart' + item.id] && this.$refs['chart' + item.id][0]) {
this.$refs['chart' + item.id][0].reload()
}
})
},

View File

@@ -32,8 +32,8 @@ export default {
methods: {
reload () {
this.dnsScreenDataList.forEach(item => {
if (this.$refs['chart' + item.id]) {
this.$refs['chart' + item.id].getChartData()
if (this.$refs['chart' + item.id] && this.$refs['chart' + item.id][0]) {
this.$refs['chart' + item.id][0].getChartData()
}
})
}