diff --git a/src/pages/crontab/logModal.tsx b/src/pages/crontab/logModal.tsx index e8d9bd04..13f99aaa 100644 --- a/src/pages/crontab/logModal.tsx +++ b/src/pages/crontab/logModal.tsx @@ -46,10 +46,7 @@ const CronLogModal = ({ const log = data as string; setValue(log || '暂无日志'); const hasNext = Boolean( - log && - !logEnded(log) && - !log.includes('重启面板') && - !log.includes('任务未运行'), + log && !logEnded(log) && !log.includes('任务未运行'), ); setExecuting(hasNext); autoScroll(); @@ -58,29 +55,6 @@ const CronLogModal = ({ getCronLog(); }, 2000); } - if ( - log && - log.includes('重启面板') && - cron.status === CrontabStatus.running - ) { - message.warning({ - content: ( - - 系统将在 - - 秒后自动刷新 - - ), - duration: 10, - }); - setTimeout(() => { - window.location.reload(); - }, 30000); - } } }) .finally(() => { diff --git a/src/pages/setting/checkUpdate.tsx b/src/pages/setting/checkUpdate.tsx index cd441049..12202b32 100644 --- a/src/pages/setting/checkUpdate.tsx +++ b/src/pages/setting/checkUpdate.tsx @@ -143,7 +143,7 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => { 秒后自动刷新 ), - duration: 15, + duration: 30, }); setTimeout(() => { window.location.reload(); diff --git a/src/pages/setting/other.tsx b/src/pages/setting/other.tsx index 509afd41..b935764d 100644 --- a/src/pages/setting/other.tsx +++ b/src/pages/setting/other.tsx @@ -141,7 +141,7 @@ const Other = ({ 秒后自动刷新 ), - duration: 15, + duration: 30, }); setTimeout(() => { window.location.reload();