fix: remove dead detail query in ReadingEventPage
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
e4ab4bb02b
commit
5bfac05bec
@ -12,19 +12,11 @@ function PageWrapper({ title, children }: { title: string; children: React.React
|
||||
export function ReadingEventPage() {
|
||||
const [page, setPage] = useState(1);
|
||||
const [filters, setFilters] = useState<Record<string, string>>({});
|
||||
const [detailId, setDetailId] = useState<string | null>(null);
|
||||
|
||||
const { data, isLoading } = useQuery({
|
||||
queryKey: ['admin-events', page, filters],
|
||||
queryFn: () => learningAdminAPI.getReadingEvents({ page, limit: 20, ...filters }),
|
||||
});
|
||||
|
||||
const { data: detail } = useQuery({
|
||||
queryKey: ['admin-event-detail', detailId],
|
||||
queryFn: () => learningAdminAPI.getReadingEvents({}).then(() => null),
|
||||
enabled: false,
|
||||
});
|
||||
|
||||
const columns = [
|
||||
{ title: '事件ID', dataIndex: 'eventId', width: 100, ellipsis: true },
|
||||
{ title: '用户', dataIndex: 'userId', width: 100, ellipsis: true },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user