From 2d7480457d2b322661aba17baa24cab4d2891076 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 3 Jan 2019 13:24:56 +0000 Subject: [PATCH] fix: loading.throttle can not be 0 --- packages/vue-app/template/components/nuxt-loading.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-app/template/components/nuxt-loading.vue b/packages/vue-app/template/components/nuxt-loading.vue index e0f7f31345..53c669f24a 100644 --- a/packages/vue-app/template/components/nuxt-loading.vue +++ b/packages/vue-app/template/components/nuxt-loading.vue @@ -9,8 +9,8 @@ export default { reversed: false, skipTimerCount: 0, rtl: <%= Boolean(loading.rtl) %>, - throttle: <%= Number(loading.throttle) ? loading.throttle : 200 %>, - duration: <%= Number(loading.duration) ? loading.duration : 3000 %>, + throttle: <%= typeof loading.throttle == 'number' ? loading.throttle : 200 %>, + duration: <%= typeof loading.throttle == 'number' ? loading.duration : 3000 %>, continuous: <%= Boolean(loading.continuous) %> } },