修复定时任务日志滚动

This commit is contained in:
whyour
2023-08-25 09:05:32 +08:00
parent 5907553670
commit e7be4999b0
4 changed files with 48 additions and 36 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ const CronLogModal = ({
log && !logEnded(log) && !log.includes('任务未运行'),
);
setExecuting(hasNext);
autoScroll();
if (hasNext) {
autoScroll();
setTimeout(() => {
getCronLog();
}, 2000);
@@ -74,7 +74,7 @@ const CronLogModal = ({
document
.querySelector('#log-flag')!
.scrollIntoView({ behavior: 'smooth' });
}, 1000);
}, 600);
};
const cancel = () => {