fix:图表销毁解绑事件
This commit is contained in:
@@ -163,12 +163,12 @@ export default {
|
||||
clearTimeout(this.timer)
|
||||
this.timer = setTimeout(() => {
|
||||
this.refreshDataFunc()
|
||||
this.timer = ''
|
||||
this.timer = null
|
||||
}, 200)
|
||||
} else {
|
||||
this.timer = setTimeout(() => {
|
||||
this.refreshDataFunc()
|
||||
this.timer = ''
|
||||
this.timer = null
|
||||
}, 200)
|
||||
}
|
||||
}
|
||||
@@ -181,6 +181,12 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
if (this.timer) {
|
||||
this.timer = setTimeout(() => {
|
||||
this.refreshDataFunc()
|
||||
this.timer = null
|
||||
}, 200)
|
||||
}
|
||||
if (this.intervalTimer) {
|
||||
clearInterval(this.intervalTimer)
|
||||
this.intervalTimer = null
|
||||
|
||||
Reference in New Issue
Block a user