修复更新弹窗无法弹出的问题
parent
9ea9fefe1d
commit
864bef483f
|
@ -181,6 +181,11 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
clearUpdateTimeout() {
|
||||||
|
if (!this.updateTimeout) return
|
||||||
|
clearTimeout(this.updateTimeout)
|
||||||
|
this.updateTimeout = null
|
||||||
|
},
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.clearUpdateTimeout()
|
this.clearUpdateTimeout()
|
||||||
|
@ -189,10 +194,6 @@ export default {
|
||||||
body.removeEventListener('mouseleave', this.enableIgnoreMouseEvents)
|
body.removeEventListener('mouseleave', this.enableIgnoreMouseEvents)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clearUpdateTimeout() {
|
|
||||||
clearTimeout(this.updateTimeout)
|
|
||||||
this.updateTimeout = null
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue