From 5d2e079e5386f937b2cee766f201cd70af98dc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E6=B8=85=E7=88=BD?= Date: Tue, 13 May 2025 16:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E5=9F=9F=E6=93=8D=E7=9B=98=E6=89=8B?= =?UTF-8?q?=20-=20=E4=BF=AE=E5=A4=8D=E6=B5=81=E9=87=8F=E6=B1=A0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=88=B7=E6=96=B0=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=97=A0?= =?UTF-8?q?=E9=99=90=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cunkebao/app/traffic-pool/page.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Cunkebao/app/traffic-pool/page.tsx b/Cunkebao/app/traffic-pool/page.tsx index 97b3090b..7244b047 100644 --- a/Cunkebao/app/traffic-pool/page.tsx +++ b/Cunkebao/app/traffic-pool/page.tsx @@ -361,6 +361,15 @@ export default function TrafficPoolPage() { return statusCode; } + // 添加刷新处理函数 + const handleRefresh = useCallback(() => { + setUsers([]) + setCurrentPage(1) + setHasMore(true) + fetchUsers(1, true) + fetchStatistics() + }, [fetchUsers, fetchStatistics]) + return (
@@ -371,7 +380,7 @@ export default function TrafficPoolPage() {

流量池

- @@ -478,7 +487,7 @@ export default function TrafficPoolPage() { ) : users.length === 0 ? (
暂无数据
-