diff --git a/back/data/index.ts b/back/data/index.ts
index e2bfa5d7..337c0137 100644
--- a/back/data/index.ts
+++ b/back/data/index.ts
@@ -6,7 +6,7 @@ export const sequelize = new Sequelize({
storage: `${config.dbPath}database.sqlite`,
logging: false,
pool: {
- max: 5,
+ max: 6,
min: 0,
idle: 30000,
},
diff --git a/back/loaders/db.ts b/back/loaders/db.ts
index ed51448e..cc8494cd 100644
--- a/back/loaders/db.ts
+++ b/back/loaders/db.ts
@@ -12,6 +12,7 @@ import { sequelize } from '../data';
export default async () => {
try {
await sequelize.sync({ alter: true });
+ await new Promise((resolve) => setTimeout(() => resolve(null), 5000));
const crondbExist = await fileExist(config.cronDbFile);
const dependenceDbExist = await fileExist(config.dependenceDbFile);
diff --git a/src/pages/crontab/logModal.tsx b/src/pages/crontab/logModal.tsx
index b48bb911..0dfa2bcc 100644
--- a/src/pages/crontab/logModal.tsx
+++ b/src/pages/crontab/logModal.tsx
@@ -90,7 +90,7 @@ const CronLogModal = ({
return (
<>
{(executing || loading) && }
- {!executing && }
+ {!executing && !loading && }
日志-{cron && cron.name}{' '}
>
);