修复错误单词,修复slug页错误的allPosts
This commit is contained in:
tangly1024
2021-11-04 14:06:32 +08:00
parent 3cb42c5ea9
commit 40db3aae2b
5 changed files with 14 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ import React, { useImperativeHandle, useState } from 'react'
import InfoCard from '@/components/InfoCard'
import TagList from '@/components/TagList'
import Logo from '@/components/Logo'
import LastedPosts from '@/components/LastedPosts'
import LatestPosts from '@/components/LatestPosts'
/**
* 抽屉面板,可以从侧面拉出
@@ -58,7 +58,7 @@ const Drawer = ({ post, currentTag, cRef, tags, posts }) => {
{/* 最新文章 */}
{posts && (
<div className='mt-2 sticky top-0'>
<LastedPosts posts={posts}/>
<LatestPosts posts={posts}/>
</div>
)}