mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复创建脚本可能失败
This commit is contained in:
1 parent
b6ea8565ec
commit
1a185f5682
28 files changed
+213
-279
No files matched your search
@@ -560,7 +560,10 @@ export default class CronService {
|
||||
if (logFileExist) {
|
||||
return await getFileContentByName(`${absolutePath}`);
|
||||
} else {
|
||||
return '任务未运行';
|
||||
return typeof doc.status === 'number' &&
|
||||
[CrontabStatus.queued, CrontabStatus.running].includes(doc.status)
|
||||
? '运行中...'
|
||||
: '任务空闲中';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user