文章溢出
This commit is contained in:
tangly1024
2021-12-21 16:45:31 +08:00
parent fac8a2834d
commit 950b8fc358
2 changed files with 18 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ import { useGlobal } from '@/lib/global'
* 展示文章推荐
*/
const RecommendPosts = ({ recommendPosts }) => {
if (!recommendPosts) {
if (!recommendPosts || recommendPosts.length < 1) {
return <></>
}
const { locale } = useGlobal()