修复cron日志展示

This commit is contained in:
whyour committed 2021-04-11 18:32:45 +08:00
1 parent 688fdbff2a
commit f706b1aa2e
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ const CronLogModal = ({
.then((data: any) => {
const log = data.data as string;
setValue(log || '暂无日志');
if (log && log.includes('执行结束')) {
if (log && !log.includes('执行结束')) {
setTimeout(() => {
getCronLog();
}, 2000);