修复-日志检索-滚动监听事件未销毁问题
This commit is contained in:
@@ -218,6 +218,7 @@ export default {
|
|||||||
// js提供的clearInterval方法用来清除定时器
|
// js提供的clearInterval方法用来清除定时器
|
||||||
// console.log('定时任务销毁')
|
// console.log('定时任务销毁')
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
|
window.removeEventListener('scroll', this.handleScroll)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initLabelOptions() { // 获取lables
|
initLabelOptions() { // 获取lables
|
||||||
@@ -374,6 +375,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: '警告',
|
title: '警告',
|
||||||
|
duration: 1000,
|
||||||
message: '暂无以往日志数据!',
|
message: '暂无以往日志数据!',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user