diff --git a/packages/vue-app/template/components/nuxt-loading.vue b/packages/vue-app/template/components/nuxt-loading.vue index a6d69a4e1f..72e8d29850 100644 --- a/packages/vue-app/template/components/nuxt-loading.vue +++ b/packages/vue-app/template/components/nuxt-loading.vue @@ -8,10 +8,10 @@ export default { canSucceed: true, reversed: false, skipTimerCount: 0, - rtl: <%= loading.rtl || false %>, - throttle: <%= loading.throttle || 200 %>, - duration: <%= loading.duration || 3000 %>, - continuous: <%= loading.continuous || false %> + rtl: <%= Boolean(loading.rtl) %>, + throttle: <%= Number(loading.throttle) ? loading.throttle : 200 %>, + duration: <%= Number(loading.duration) ? loading.duration : 3000 %>, + continuous: <%= Boolean(loading.continuous) %> } }, computed: {