mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vue-app): clear hide timeout when calling clear()
(#10086)
This commit is contained in:
parent
0b0a85e087
commit
0088d13c29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user