From 815770467aba5c54f46ec1ee3b4c2fbf8d0a1cd6 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Tue, 25 Jul 2023 16:18:46 +0800 Subject: [PATCH] fix: ui --- client/src/pages/number/components/InformTable.tsx | 5 ++++- client/src/pages/number/components/PayRecordTable.tsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 = () => { )} - + ); };