mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复重启提示持续时间
This commit is contained in:
parent
4e091b0c3e
commit
01e2bd007d
|
@ -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: (
|
||||
<span>
|
||||
系统将在
|
||||
<Countdown
|
||||
className="inline-countdown"
|
||||
format="ss"
|
||||
value={Date.now() + 1000 * 30}
|
||||
/>
|
||||
秒后自动刷新
|
||||
</span>
|
||||
),
|
||||
duration: 10,
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 30000);
|
||||
}
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
|
@ -143,7 +143,7 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => {
|
|||
秒后自动刷新
|
||||
</span>
|
||||
),
|
||||
duration: 15,
|
||||
duration: 30,
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
|
|
|
@ -141,7 +141,7 @@ const Other = ({
|
|||
秒后自动刷新
|
||||
</span>
|
||||
),
|
||||
duration: 15,
|
||||
duration: 30,
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
|
|
Loading…
Reference in New Issue
Block a user