Skip to content

Commit

Permalink
fix(vue-app): clear hide timeout when calling clear() (#10086)
Browse files Browse the repository at this point in the history
  • Loading branch information
arikw committed Jan 19, 2023
1 parent 0b0a85e commit 0088d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-app/template/components/nuxt-loading.vue
Expand Up @@ -31,6 +31,7 @@ export default {
clear () {
clearInterval(this._timer)
clearTimeout(this._throttle)
clearTimeout(this._hide)
this._timer = null
},
start () {
Expand Down Expand Up @@ -79,7 +80,7 @@ export default {
},
hide () {
this.clear()
setTimeout(() => {
this._hide = setTimeout(() => {
this.show = false
this.$nextTick(() => {
this.percent = 0
Expand Down

0 comments on commit 0088d13

Please sign in to comment.