From 0753f036bd3528f553a604345f9c5d2fbc1c35b9 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 4 Jan 2026 01:24:48 -0800 Subject: [PATCH] fix(admin-web): always fetch all authorization records including revoked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed to always include revoked records in API query, filtering is done on frontend side. This ensures all historical records are visible. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../admin-web/src/app/(dashboard)/authorization/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/admin-web/src/app/(dashboard)/authorization/page.tsx b/frontend/admin-web/src/app/(dashboard)/authorization/page.tsx index e06d6bb8..d9de8d41 100644 --- a/frontend/admin-web/src/app/(dashboard)/authorization/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/authorization/page.tsx @@ -43,14 +43,14 @@ export default function AuthorizationPage() { const [revokeTarget, setRevokeTarget] = useState(null); const [revokeReason, setRevokeReason] = useState(''); - // 查询参数 + // 查询参数 - 始终获取所有记录(包括已撤销的),前端做状态筛选 const queryParams = useMemo(() => ({ roleType: filterType || undefined, keyword: searchKeyword || undefined, - includeRevoked: filterStatus === 'REVOKED' || filterStatus === '', + includeRevoked: true, page, limit, - }), [filterType, searchKeyword, filterStatus, page]); + }), [filterType, searchKeyword, page]); // 获取授权列表 const { data, isLoading, error, refetch } = useAuthorizations(queryParams);