refactor: enable scroll-to-top button globally in browse page by removing path restriction

This commit is contained in:
jxxghp
2026-05-17 19:27:04 +08:00
parent dee5d9d213
commit 30a4c55050

View File

@@ -34,7 +34,7 @@ function getApiPath(paths: string[] | string) {
<VPageContentTitle :title="title" />
<PersonCardListView v-if="type === 'person'" :apipath="getApiPath(props.paths || '')" :params="route.query" />
<MediaCardListView v-else :apipath="getApiPath(props.paths || '')" :params="route.query" />
<Teleport to="body" v-if="route.path === '/browse'">
<Teleport to="body">
<VScrollToTopBtn />
</Teleport>
</div>