fix: 目录解析问题

This commit is contained in:
pengzhanbo 2022-03-14 02:14:40 +08:00
parent 472ee9bd0c
commit f2924b15d2
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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)