fix(vue-app): clear hide timeout when calling clear() (#10086)

This commit is contained in:
Arik 2023-01-19 20:51:41 +02:00 committed by GitHub
parent 0b0a85e087
commit 0088d13c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ export default {
clear () {
clearInterval(this._timer)
clearTimeout(this._throttle)
clearTimeout(this._hide)
this._timer = null
},
start () {
@ -79,7 +80,7 @@ export default {
},
hide () {
this.clear()
setTimeout(() => {
this._hide = setTimeout(() => {
this.show = false
this.$nextTick(() => {
this.percent = 0