diff --git a/frontend/index.html b/frontend/index.html index 1894deb..39c6905 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - 甲辰收藏 v1.2.70 + 甲辰收藏 v=1.2.72 diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index f2ee81e..92b283d 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -73,7 +73,7 @@ export default function Home() { setDragonStats(data || {}) }).catch(() => {}) - fetch('/api/yichens/posts?limit=10&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 : []) }).catch(() => {}) diff --git a/frontend/src/pages/YichensBoard.jsx b/frontend/src/pages/YichensBoard.jsx index ccf5019..6f8594c 100644 --- a/frontend/src/pages/YichensBoard.jsx +++ b/frontend/src/pages/YichensBoard.jsx @@ -41,7 +41,7 @@ export default function YichensBoard() { const currentPage = p !== undefined ? p : page const currentCat = cat !== undefined ? cat : categoryFilter - let url = '/api/yichens/posts?limit=390&offset=' + ((currentPage - 1) * 390) + let url = '/api/yichens/posts?limit=50&offset=' + ((currentPage - 1) * 390) if (postTypeFilter === 'deal') url += '&post_type=deal' else if (postTypeFilter === 'want') url += '&post_type=want' else if (postTypeFilter === 'other') url += '&post_type=normal' @@ -218,7 +218,7 @@ export default function YichensBoard() {
- 共 {totalPosts} 条帖子,{Math.ceil(totalPosts / 390)} 页,当前第 {page} 页 + 共 {totalPosts} 条帖子,{Math.ceil(totalPosts / 50)} 页,当前第 {page} 页
{page > 1 ? ( @@ -226,7 +226,7 @@ export default function YichensBoard() { ) : ( 上一页 )} - {posts.length >= 390 ? ( + {posts.length >= 50 ? ( ) : ( 下一页