bug:搜索

This commit is contained in:
tangly1024
2022-04-02 12:11:34 +08:00
parent 376dd1145d
commit 5b5e72478c

View File

@@ -24,6 +24,7 @@ const Index = props => {
export async function getServerSideProps ({ params: { keyword } }) {
const props = await getGlobalNotionData({ from: 'search-props', pageType: ['Post'] })
props.posts = await filterByMemCache(props.allPosts, keyword)
props.keyword = keyword
return {
props
}