diff --git a/src/components/name.tsx b/src/components/name.tsx index 7085e06f..bbca8085 100644 --- a/src/components/name.tsx +++ b/src/components/name.tsx @@ -13,7 +13,7 @@ export default function Name< options: Options; }) { const { loading, data } = useRequest(service, options); - console.log(loading, data); + return ( {data?.data?.name} diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 8257e3ba..b1671cfc 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -905,6 +905,11 @@ const Crontab = () => { setViewConf(view ? view : null); }; + const [vt] = useVT( + () => ({ scroll: { y: tableScrollHeight } }), + [tableScrollHeight], + ); + return ( { rowSelection={rowSelection} rowClassName={getRowClassName} onChange={onPageChange} + components={isPhone || pageConf.size < 50 ? undefined : vt} />