From 66425218aad5a8680809d91aeb4fbd1e199ddd1a Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Tue, 10 Jun 2025 21:01:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AE=80=E5=8C=96=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8F=E6=BB=9A=E5=8A=A8=E5=8A=A8=E7=94=BB=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E4=B8=8D=E5=90=8C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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;