mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix: ui
This commit is contained in:
@@ -5,11 +5,13 @@ import { usePagination } from '@/hooks/usePagination';
|
|||||||
import { useLoading } from '@/hooks/useLoading';
|
import { useLoading } from '@/hooks/useLoading';
|
||||||
import type { informSchema } from '@/types/mongoSchema';
|
import type { informSchema } from '@/types/mongoSchema';
|
||||||
import { formatTimeToChatTime } from '@/utils/tools';
|
import { formatTimeToChatTime } from '@/utils/tools';
|
||||||
|
import { useGlobalStore } from '@/store/global';
|
||||||
import MyIcon from '@/components/Icon';
|
import MyIcon from '@/components/Icon';
|
||||||
|
|
||||||
const BillTable = () => {
|
const BillTable = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { Loading } = useLoading();
|
const { Loading } = useLoading();
|
||||||
|
const { isPc } = useGlobalStore();
|
||||||
const {
|
const {
|
||||||
data: informs,
|
data: informs,
|
||||||
isLoading,
|
isLoading,
|
||||||
@@ -19,7 +21,8 @@ const BillTable = () => {
|
|||||||
getData,
|
getData,
|
||||||
pageNum
|
pageNum
|
||||||
} = usePagination<informSchema>({
|
} = usePagination<informSchema>({
|
||||||
api: getInforms
|
api: getInforms,
|
||||||
|
pageSize: isPc ? 20 : 10
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@@ -58,7 +58,7 @@ const PayRecordTable = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Box position={'relative'} h={'100%'}>
|
||||||
{!isInitialLoading && payOrders.length === 0 ? (
|
{!isInitialLoading && payOrders.length === 0 ? (
|
||||||
<Flex h={'100%'} flexDirection={'column'} alignItems={'center'} justifyContent={'center'}>
|
<Flex h={'100%'} flexDirection={'column'} alignItems={'center'} justifyContent={'center'}>
|
||||||
<MyIcon name="empty" w={'48px'} h={'48px'} color={'transparent'} />
|
<MyIcon name="empty" w={'48px'} h={'48px'} color={'transparent'} />
|
||||||
@@ -101,7 +101,7 @@ const PayRecordTable = () => {
|
|||||||
</TableContainer>
|
</TableContainer>
|
||||||
)}
|
)}
|
||||||
<Loading loading={isInitialLoading} fixed={false} />
|
<Loading loading={isInitialLoading} fixed={false} />
|
||||||
</>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user