diff --git a/app.vue b/app.vue index 23a407c..f94e7f6 100644 --- a/app.vue +++ b/app.vue @@ -5,7 +5,9 @@ import Button from "primevue/button"; const path = computed(() => { return useRoute().path; }); -const sProgress = ref(["/", "/download"].includes(path.value) ? 1 : 0); +const sProgress = ref( + ["/", "/download", "/download/"].includes(path.value) ? 1 : 0 +); const scrollPanel = useTemplateRef("scrollPanel"); const sX = ref(0); const sY = ref(0); @@ -24,7 +26,7 @@ const handleScrollOrResize = () => { sWidth.value = el.getBoundingClientRect().width; sHeight.value = el.getBoundingClientRect().height; } - if (!["/", "/download"].includes(path.value)) { + if (!["/", "/download", "/download/"].includes(path.value)) { sProgress.value = 0; return; }