diff --git a/components/BlogPostListEmpty.js b/components/BlogPostListEmpty.js index 1dfb71b4..499331c5 100644 --- a/components/BlogPostListEmpty.js +++ b/components/BlogPostListEmpty.js @@ -1,12 +1,21 @@ +import { useRouter } from 'next/router' +import { useEffect } from 'react' + /** * 空白博客 列表 * @returns {JSX.Element} * @constructor */ const BlogPostListEmpty = () => { + const router = useRouter() + useEffect(() => { + setTimeout(() => { + router.push('/') + }, 3000) + }) return
-

No posts found.

+

没有文章了,3秒后返回首页

}