修复配置了prefix后,部分页面无法打开的bug

This commit is contained in:
tangly1024.com
2024-06-28 17:31:31 +08:00
parent 3220bf4bf2
commit ea74dc3fae
2 changed files with 10 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ export async function getStaticProps({ params: { prefix }, locale }) {
fullSlug += '.html'
}
}
// 在列表内查找文章
props.post = props?.allPages?.find(p => {
return (