mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-20 01:08:37 +00:00
⚡ chore: Increase default page size from 10 to 100 items in model pricing views
This commit updates the default pagination settings across the model pricing components to improve user experience by reducing the need for frequent page navigation when browsing large model catalogs. Changes made: - Update initial pageSize state from 10 to 100 in useModelPricingData hook - Set defaultPageSize to 100 in PricingTable pagination configuration - Increase default skeletonCount from 10 to 100 in PricingCardSkeleton Files modified: - web/src/hooks/model-pricing/useModelPricingData.jsx - web/src/components/table/model-pricing/view/table/PricingTable.jsx - web/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx This change affects both card and table view modes of the model pricing page, ensuring consistent pagination behavior across different display formats.
This commit is contained in:
@@ -39,7 +39,7 @@ export const useModelPricingData = () => {
|
||||
const [filterEndpointType, setFilterEndpointType] = useState('all'); // 端点类型筛选: 'all' | string
|
||||
const [filterVendor, setFilterVendor] = useState('all'); // 供应商筛选: 'all' | 'unknown' | string
|
||||
const [filterTag, setFilterTag] = useState('all'); // 模型标签筛选: 'all' | string
|
||||
const [pageSize, setPageSize] = useState(10);
|
||||
const [pageSize, setPageSize] = useState(100);
|
||||
const [currentPage, setCurrentPage] = useState(1);
|
||||
const [currency, setCurrency] = useState('USD');
|
||||
const [showWithRecharge, setShowWithRecharge] = useState(false);
|
||||
|
||||
Reference in New Issue
Block a user