From 08646fe984588cf568fe2c90a4ec99a5c82eff40 Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Mon, 2 Jun 2025 21:02:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20sProgress=20?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BB=A5=E6=94=AF=E6=8C=81=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xudeyu444 --- app.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.vue b/app.vue index df8560d..9b9fde9 100644 --- a/app.vue +++ b/app.vue @@ -5,7 +5,7 @@ import Button from "primevue/button"; const path = computed(() => { return useRoute().path; }); -const sProgress = ref(path.value === "/" ? 1 : 0); +const sProgress = ref(["/", "/download"].includes(path.value) ? 1 : 0); const scrollPanel = useTemplateRef("scrollPanel"); const sX = ref(0); const sY = ref(0); @@ -24,7 +24,7 @@ const handleScrollOrResize = () => { sWidth.value = el.getBoundingClientRect().width; sHeight.value = el.getBoundingClientRect().height; } - if (path.value !== "/") { + if (!["/", "/download"].includes(path.value)) { sProgress.value = 0; return; }