From 41ef87d9f876fe39943ca1fd91ce4a20eaaa832c Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sat, 18 Sep 2021 16:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=AF=A6=E6=83=85=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=B7=BB=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/logModal.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/crontab/logModal.tsx b/src/pages/crontab/logModal.tsx index ef5a0c29..345bb39c 100644 --- a/src/pages/crontab/logModal.tsx +++ b/src/pages/crontab/logModal.tsx @@ -6,6 +6,7 @@ import { Loading3QuartersOutlined, CheckCircleOutlined, } from '@ant-design/icons'; +import { PageLoading } from '@ant-design/pro-layout'; enum CrontabStatus { 'running', @@ -88,7 +89,7 @@ const CronLogModal = ({ const titleElement = () => { return ( <> - {excuting && } + {(excuting || loading) && } {!excuting && } 日志-{cron && cron.name}{' '} @@ -114,6 +115,7 @@ const CronLogModal = ({ bodyStyle={{ overflowY: 'auto', maxHeight: 'calc(80vh - var(--vh-offset, 0px))', + minHeight: '300px', }} forceRender onOk={() => cancel()} @@ -124,7 +126,9 @@ const CronLogModal = ({ , ]} > - {!loading && value && ( + {loading ? ( + + ) : (