修复轮询日志和任务状态

This commit is contained in:
whyour
2021-05-12 12:02:08 +08:00
parent a50e3ad401
commit 57c1bbcae4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ const CronLogModal = ({
if (localStorage.getItem('logCron') === cron._id) {
const log = data.data as string;
setValue(log || '暂无日志');
if (log && !log.includes('执行结束') && visible) {
if (log && !log.includes('执行结束')) {
setTimeout(() => {
getCronLog();
}, 2000);