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);