This commit is contained in:
tangly1024
2022-03-02 10:51:44 +08:00
parent f9ed6f1108
commit 0fe3756595

View File

@@ -64,6 +64,7 @@ export async function getStaticProps ({ params: { keyword } }) {
const tagContent = post.tags ? post.tags.join(' ') : ''
const categoryContent = post.category ? post.category.join(' ') : ''
let indexContent = [post.title, post.summary, tagContent, categoryContent]
console.log('搜索是否命中缓存', page !== null)
if (page !== null) {
const contentIds = Object.keys(page.block)
contentIds.forEach(id => {