mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-15 05:33:27 +08:00
修复获取日志判断
This commit is contained in:
@@ -352,6 +352,10 @@ export default class CronService {
|
|||||||
|
|
||||||
public async log(_id: string) {
|
public async log(_id: string) {
|
||||||
const doc = await this.get(_id);
|
const doc = await this.get(_id);
|
||||||
|
if (!doc) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
if (doc.log_path) {
|
if (doc.log_path) {
|
||||||
return getFileContentByName(`${doc.log_path}`);
|
return getFileContentByName(`${doc.log_path}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user