mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 19:30:48 +08:00
修复cron日志显示
This commit is contained in:
@@ -120,8 +120,7 @@ const Crontab = () => {
|
||||
<Tooltip title="日志">
|
||||
<a
|
||||
onClick={() => {
|
||||
setLogCron(record);
|
||||
setIsLogModalVisible(true);
|
||||
setLogCron({ ...record, timestamp: Date.now() });
|
||||
}}
|
||||
>
|
||||
<FileTextOutlined />
|
||||
@@ -386,6 +385,12 @@ const Crontab = () => {
|
||||
.finally(() => setLoading(false));
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (logCron) {
|
||||
setIsLogModalVisible(true);
|
||||
}
|
||||
}, [logCron]);
|
||||
|
||||
useEffect(() => {
|
||||
getCrons();
|
||||
}, [searchText]);
|
||||
|
||||
Reference in New Issue
Block a user