fix: 修复chartAlarmInfo组件只有第一次刷新时回到第一页

This commit is contained in:
@changcode
2022-05-18 18:21:26 +08:00
parent 221ec8f076
commit 08f7df4e52
2 changed files with 5 additions and 0 deletions

View File

@@ -313,6 +313,7 @@ export default {
this.$emit('refresh')
if (this.isAlarmInfo) {
this.tabHandleClick('All')
this.emitter.emit('chart-info', 'All')
}
},
timeRefreshChange () {

View File

@@ -192,6 +192,10 @@ export default {
}
},
mounted () {
const _this = this
this.emitter.on('chart-info', function (value) {
_this.getData(1, value)
})
this.getCount()
}
}