diff --git a/app.vue b/app.vue index 1b959fb..015af12 100644 --- a/app.vue +++ b/app.vue @@ -7,9 +7,7 @@ const appConfig = useAppConfig(); const path = computed(() => { return useRoute().path; }); -const sProgress = ref( - ["/", "/download", "/download/"].includes(path.value) ? 1 : 0 -); +const sProgress = ref(1); const scrollPanel = useTemplateRef("scrollPanel"); const sX = ref(0); const sY = ref(0); @@ -28,10 +26,6 @@ const handleScrollOrResize = () => { sWidth.value = el.getBoundingClientRect().width; sHeight.value = el.getBoundingClientRect().height; } - if (!["/", "/download", "/download/"].includes(path.value)) { - sProgress.value = 0; - return; - } const scrollTop = (scrollPanel.value as unknown as { lastScrollTop: number }) .lastScrollTop; const clientHeight = scrollPanel.value?.$el.clientHeight;