From 0d41cdf8c34d2459d2db6795e6bf06ebaebec472 Mon Sep 17 00:00:00 2001 From: Arik <7900646+arikw@users.noreply.github.com> Date: Fri, 26 Nov 2021 02:17:14 +0200 Subject: [PATCH] fix: show loading indication finished shortly beforehand --- packages/vue-app/template/components/nuxt-loading.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vue-app/template/components/nuxt-loading.vue b/packages/vue-app/template/components/nuxt-loading.vue index fa19f8b4a116..8cf67731a425 100644 --- a/packages/vue-app/template/components/nuxt-loading.vue +++ b/packages/vue-app/template/components/nuxt-loading.vue @@ -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