diff --git a/package.json b/package.json index d0983698..712ccfe1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pengzhanbo/vuepress-theme-plume", - "version": "1.0.0-beta.6", + "version": "1.0.0-beta.7", "description": "blog theme by vuepress2.x", "main": "lib/node/index.js", "types": "lib/node/index.d.ts", diff --git a/src/client/composables/useCategoryList.ts b/src/client/composables/useCategoryList.ts index 202c6bfa..df61fba0 100644 --- a/src/client/composables/useCategoryList.ts +++ b/src/client/composables/useCategoryList.ts @@ -43,8 +43,8 @@ usePostIndex().value.forEach((post) => { children: [], postList: [], } + children.push(current) } - children.push(current) children = current.children if (index === category.length - 1) { current.postList.push(post)