From 624c9374e52c10f807788a5954ab528ff3c3250b Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 4 Aug 2023 22:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=88=97=E8=A1=A8=E8=99=9A=E6=8B=9F=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/name.tsx | 2 +- src/pages/crontab/index.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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} />