mirror of
https://github.com/spark-store-project/spark-store-abyss
synced 2025-12-17 12:51:38 +08:00
fix: 更新 sProgress 逻辑以支持多个路径
Co-authored-by: xudeyu444 <xudeyu444@users.noreply.github.com>
This commit is contained in:
4
app.vue
4
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<ComponentPublicInstance>("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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user