fix/page-search-example

This commit is contained in:
tangly1024.com
2023-06-15 15:48:16 +08:00
parent 286090c6f1
commit 112f003d29
2 changed files with 4 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ const Search = props => {
type: 'website'
}
props = { ...props, meta, posts: { filteredPosts } }
props = { ...props, meta, posts: filteredPosts }
return <Suspense fallback={<Loading />}>
<Layout {...props} />

View File

@@ -8,7 +8,7 @@ import Mark from 'mark.js'
import LayoutBase from './LayoutBase'
import { isBrowser } from '@/lib/utils'
export const LayoutSearch = props => {
const LayoutSearch = props => {
const { keyword } = props
const router = useRouter()
@@ -52,3 +52,5 @@ export const LayoutSearch = props => {
</LayoutBase>
}
export default LayoutSearch