fix: 修复chartAlarmInfo组件只有第一次刷新时回到第一页
This commit is contained in:
@@ -313,6 +313,7 @@ export default {
|
||||
this.$emit('refresh')
|
||||
if (this.isAlarmInfo) {
|
||||
this.tabHandleClick('All')
|
||||
this.emitter.emit('chart-info', 'All')
|
||||
}
|
||||
},
|
||||
timeRefreshChange () {
|
||||
|
||||
@@ -192,6 +192,10 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
const _this = this
|
||||
this.emitter.on('chart-info', function (value) {
|
||||
_this.getData(1, value)
|
||||
})
|
||||
this.getCount()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user