修复任务管理创建视图 placeholder,更新 npm 包

This commit is contained in:
whyour
2023-09-15 21:27:53 +08:00
parent 0511a4af0d
commit 042d7d3b8e
13 changed files with 101 additions and 103 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import dayjs from 'dayjs';
import taskLimit from '../shared/pLimit';
import { spawn } from 'cross-spawn';
interface ScheduleTaskType {
export interface ScheduleTaskType {
id: number;
command: string;
name?: string;
+2 -2
View File
@@ -28,7 +28,7 @@ import taskLimit from '../shared/pLimit';
import tar from 'tar';
import path from 'path';
import fs from 'fs';
import { sum } from 'lodash';
import sum from 'lodash/sum';
@Service()
export default class SystemService {
@@ -84,7 +84,7 @@ export default class SystemService {
});
if (info.logRemoveFrequency) {
const cron = {
id: result.id,
id: result.id || NaN,
name: '删除日志',
command: `ql rmlog ${info.logRemoveFrequency}`,
};