修复更新弹窗无法弹出的问题

pull/96/head
lyswhut 2019-09-05 13:54:26 +08:00
parent 9ea9fefe1d
commit 864bef483f
1 changed files with 5 additions and 4 deletions

View File

@ -181,6 +181,11 @@ export default {
})
})
},
clearUpdateTimeout() {
if (!this.updateTimeout) return
clearTimeout(this.updateTimeout)
this.updateTimeout = null
},
},
beforeDestroy() {
this.clearUpdateTimeout()
@ -189,10 +194,6 @@ export default {
body.removeEventListener('mouseleave', this.enableIgnoreMouseEvents)
}
},
clearUpdateTimeout() {
clearTimeout(this.updateTimeout)
this.updateTimeout = null
},
}
</script>