mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
bug:搜索
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user