Skip to content

Commit 30a4c55

Browse files
committed
refactor: enable scroll-to-top button globally in browse page by removing path restriction
1 parent dee5d9d commit 30a4c55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/browse.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function getApiPath(paths: string[] | string) {
3434
<VPageContentTitle :title="title" />
3535
<PersonCardListView v-if="type === 'person'" :apipath="getApiPath(props.paths || '')" :params="route.query" />
3636
<MediaCardListView v-else :apipath="getApiPath(props.paths || '')" :params="route.query" />
37-
<Teleport to="body" v-if="route.path === '/browse'">
37+
<Teleport to="body">
3838
<VScrollToTopBtn />
3939
</Teleport>
4040
</div>

0 commit comments

Comments
 (0)