From e5a5a2c48c90a280b8b2da5db0a78616e80368c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Wed, 8 Apr 2026 22:24:22 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.72=20-=20=E4=BC=98=E5=8C=96=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 2 +- frontend/src/pages/Home.jsx | 2 +- frontend/src/pages/YichensBoard.jsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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 ? ( ) : ( 下一页