From 0fe37565957f2bcf5358197ea45b7a90b74393fd Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 2 Mar 2022 10:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/search/[keyword].js | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/search/[keyword].js b/pages/search/[keyword].js index 8463fc91..01f3a46b 100644 --- a/pages/search/[keyword].js +++ b/pages/search/[keyword].js @@ -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 => {