mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +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 () {
|
clear () {
|
||||||
clearInterval(this._timer)
|
clearInterval(this._timer)
|
||||||
clearTimeout(this._throttle)
|
clearTimeout(this._throttle)
|
||||||
|
clearTimeout(this._hide)
|
||||||
this._timer = null
|
this._timer = null
|
||||||
},
|
},
|
||||||
start () {
|
start () {
|
||||||
@ -79,7 +80,7 @@ export default {
|
|||||||
},
|
},
|
||||||
hide () {
|
hide () {
|
||||||
this.clear()
|
this.clear()
|
||||||
setTimeout(() => {
|
this._hide = setTimeout(() => {
|
||||||
this.show = false
|
this.show = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.percent = 0
|
this.percent = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user