From 1b0793ecae553a1d71f03c3280ee33e6b919ab43 Mon Sep 17 00:00:00 2001 From: Zhengqbbb <1074059947@qq.com> Date: Mon, 27 Feb 2023 10:14:16 +0800 Subject: [PATCH] fix(posts): fix posts list render repeat after bump closed #8 --- src/components/ListPosts.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ListPosts.vue b/src/components/ListPosts.vue index 23b2219..042c52a 100644 --- a/src/components/ListPosts.vue +++ b/src/components/ListPosts.vue @@ -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 => {