mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复日志加载状态
This commit is contained in:
parent
c9c4043a4e
commit
1b5f4a0f9d
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -90,7 +90,7 @@ const CronLogModal = ({
|
|||
return (
|
||||
<>
|
||||
{(executing || loading) && <Loading3QuartersOutlined spin />}
|
||||
{!executing && <CheckCircleOutlined />}
|
||||
{!executing && !loading && <CheckCircleOutlined />}
|
||||
<span style={{ marginLeft: 5 }}>日志-{cron && cron.name}</span>{' '}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user