修复-日志检索-滚动监听事件未销毁问题

This commit is contained in:
lyd
2022-09-08 17:06:16 +08:00
parent 285a02f5d0
commit 497869ca50

View File

@@ -218,6 +218,7 @@ export default {
// js提供的clearInterval方法用来清除定时器
// console.log('定时任务销毁')
clearInterval(this.timer)
window.removeEventListener('scroll', this.handleScroll)
},
methods: {
initLabelOptions() { // 获取lables
@@ -374,6 +375,7 @@ export default {
} else {
this.$notify({
title: '警告',
duration: 1000,
message: '暂无以往日志数据!',
type: 'warning'
})