diff --git a/components/BlogPostListEmpty.js b/components/BlogPostListEmpty.js index 0cca9919..37982cd9 100644 --- a/components/BlogPostListEmpty.js +++ b/components/BlogPostListEmpty.js @@ -6,18 +6,10 @@ import { useEffect } from 'react' * @returns {JSX.Element} * @constructor */ -const BlogPostListEmpty = () => { - const router = useRouter() - useEffect(() => { - setTimeout(() => { - router.push('/').then(() => { - console.log('空博客列表跳回首页') - }) - }, 3000) - }) - return
没有文章了,3秒后返回首页
+const BlogPostListEmpty = ({ currentSearch }) => { + return没有找到文章 {(currentSearch &&