Skip to content

Commit

Permalink
fix(posts): fix posts list render repeat after bump
Browse files Browse the repository at this point in the history
closed #8
  • Loading branch information
Zhengqbbb committed Feb 27, 2023
1 parent dcb9d56 commit 1b0793e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ListPosts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { PageMeta, PostRouterRecord } from '~build/node'
const router = useRouter()
const posts = router.getRoutes()
.filter(page => page.name)
.filter(page => page.meta.layout === 'post')
.map(
(page: any): PostRouterRecord => {
Expand Down

0 comments on commit 1b0793e

Please # to comment.