diff --git a/client/src/pages/number/components/InformTable.tsx b/client/src/pages/number/components/InformTable.tsx index 352c45245..93eb8cd0a 100644 --- a/client/src/pages/number/components/InformTable.tsx +++ b/client/src/pages/number/components/InformTable.tsx @@ -5,11 +5,13 @@ import { usePagination } from '@/hooks/usePagination'; import { useLoading } from '@/hooks/useLoading'; import type { informSchema } from '@/types/mongoSchema'; import { formatTimeToChatTime } from '@/utils/tools'; +import { useGlobalStore } from '@/store/global'; import MyIcon from '@/components/Icon'; const BillTable = () => { const theme = useTheme(); const { Loading } = useLoading(); + const { isPc } = useGlobalStore(); const { data: informs, isLoading, @@ -19,7 +21,8 @@ const BillTable = () => { getData, pageNum } = usePagination({ - api: getInforms + api: getInforms, + pageSize: isPc ? 20 : 10 }); return ( diff --git a/client/src/pages/number/components/PayRecordTable.tsx b/client/src/pages/number/components/PayRecordTable.tsx index e17f0d59b..603216bfb 100644 --- a/client/src/pages/number/components/PayRecordTable.tsx +++ b/client/src/pages/number/components/PayRecordTable.tsx @@ -58,7 +58,7 @@ const PayRecordTable = () => { }); return ( - <> + {!isInitialLoading && payOrders.length === 0 ? ( @@ -101,7 +101,7 @@ const PayRecordTable = () => { )} - + ); };