开发环境添加中转页

This commit is contained in:
tangly1024
2021-10-18 13:54:45 +08:00
parent b0ddc567ed
commit cc289bb545
3 changed files with 13 additions and 13 deletions

View File

@@ -13,7 +13,6 @@ import ShareBar from '@/components/ShareBar'
import BlogPostMini from '@/components/BlogPostMini'
import Comment from '@/components/Comment'
import TocBar from '@/components/TocBar'
import JumpToTop from '@/components/JumpToTop'
import BaseLayout from '@/layouts/BaseLayout'
import { useRef } from 'react'
@@ -22,7 +21,13 @@ const mapPageUrl = id => {
}
const BlogPost = ({ post, blockMap, emailHash, tags, prev, next }) => {
if (!post) {
return <>空白页</>
return <BaseLayout meta={{ title: `${BLOG.title} | 加载中` }}>
<div className='w-full h-full flex justify-center mx-auto dark:bg-gray-800'>
<div className='dark:text-gray-300 text-black align-middle text-center my-auto animate-pulse'>
<div>Loading...</div>
</div>
</div>
</BaseLayout>
}
const meta = {
title: post.title,