v1.2.76 - 首页最新帖子+搜索分页修复

This commit is contained in:
甲辰生产 2026-04-08 23:29:15 +08:00
parent 6401fc57ea
commit 7e19e2a55d
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
VERSION=1.2.75 VERSION=1.2.76

View File

@ -1 +1 @@
VERSION=1.2.75 VERSION=1.2.76

View File

@ -74,7 +74,7 @@ export default function Home() {
}).catch(() => {}) }).catch(() => {})
fetch('/api/yichens/posts?limit=20&offset=0').then(res => res.json()).then(data => { fetch('/api/yichens/posts?limit=20&offset=0').then(res => res.json()).then(data => {
setRecentPosts(Array.isArray(data) ? data : []) setRecentPosts(data.posts || data || [])
}).catch(() => {}) }).catch(() => {})
// //