Merge pull request #5365 from dataease/pr@dev@fix_panel-filter-timer

fix(仪表板): 修复删除动态时间组件定时器没有删除导致异常刷新问题
This commit is contained in:
fit2cloudrd 2023-05-30 17:35:09 +08:00 committed by GitHub
commit 11056a4dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,6 +183,7 @@ export default {
}
},
beforeDestroy() {
this.timer && clearInterval(this.timer)
bus.$off('onScroll', this.onScroll)
bus.$off('reset-default-value', this.resetDefaultValue)
},