mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复任务运行状态展示
This commit is contained in:
@@ -31,8 +31,8 @@ import CronModal from './modal';
|
||||
const { Text } = Typography;
|
||||
|
||||
enum CrontabStatus {
|
||||
'idle',
|
||||
'running',
|
||||
'idle',
|
||||
'disabled',
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ const Login = () => {
|
||||
.then((data) => {
|
||||
if (data.code === 200) {
|
||||
localStorage.setItem(config.authKey, data.token);
|
||||
history.push('/cookie');
|
||||
history.push('/crontab');
|
||||
} else if (data.code === 100) {
|
||||
notification.warn({
|
||||
message: data.msg,
|
||||
@@ -39,7 +39,7 @@ const Login = () => {
|
||||
useEffect(() => {
|
||||
const isAuth = localStorage.getItem(config.authKey);
|
||||
if (isAuth) {
|
||||
history.push('/cookie');
|
||||
history.push('/crontab');
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user