mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复日志滚动逻辑
This commit is contained in:
parent
335c13ab44
commit
13d95b8c19
|
@ -50,12 +50,12 @@ const CronLogModal = ({
|
||||||
setValue(log || '暂无日志');
|
setValue(log || '暂无日志');
|
||||||
const hasNext = log && !logEnded(log) && !log.includes('重启面板');
|
const hasNext = log && !logEnded(log) && !log.includes('重启面板');
|
||||||
setExecuting(hasNext);
|
setExecuting(hasNext);
|
||||||
|
setTimeout(() => {
|
||||||
|
document
|
||||||
|
.querySelector('#log-flag')!
|
||||||
|
.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}, 1000);
|
||||||
if (hasNext) {
|
if (hasNext) {
|
||||||
setTimeout(() => {
|
|
||||||
document
|
|
||||||
.querySelector('#log-flag')!
|
|
||||||
.scrollIntoView({ behavior: 'smooth' });
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getCronLog();
|
getCronLog();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user