From 13d95b8c19d4190fc9b8388528533a11c83aa79b Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 11 Jan 2023 23:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/logModal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/crontab/logModal.tsx b/src/pages/crontab/logModal.tsx index 150a0b3e..3ef6d67a 100644 --- a/src/pages/crontab/logModal.tsx +++ b/src/pages/crontab/logModal.tsx @@ -50,12 +50,12 @@ const CronLogModal = ({ setValue(log || '暂无日志'); const hasNext = log && !logEnded(log) && !log.includes('重启面板'); setExecuting(hasNext); + setTimeout(() => { + document + .querySelector('#log-flag')! + .scrollIntoView({ behavior: 'smooth' }); + }, 1000); if (hasNext) { - setTimeout(() => { - document - .querySelector('#log-flag')! - .scrollIntoView({ behavior: 'smooth' }); - }); setTimeout(() => { getCronLog(); }, 2000);