修复cron日志展示

This commit is contained in:
whyour 2021-04-11 18:32:45 +08:00
parent 688fdbff2a
commit f706b1aa2e

View File

@ -30,7 +30,7 @@ const CronLogModal = ({
.then((data: any) => { .then((data: any) => {
const log = data.data as string; const log = data.data as string;
setValue(log || '暂无日志'); setValue(log || '暂无日志');
if (log && log.includes('执行结束')) { if (log && !log.includes('执行结束')) {
setTimeout(() => { setTimeout(() => {
getCronLog(); getCronLog();
}, 2000); }, 2000);