mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
重启系统添加倒计时提示
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, notification, Input, Form } from 'antd';
|
||||
import { Modal, message, Input, Form } from 'antd';
|
||||
import { request } from '@/utils/http';
|
||||
import config from '@/utils/config';
|
||||
import {
|
||||
@@ -42,6 +42,12 @@ const CronLogModal = ({
|
||||
getCronLog();
|
||||
}, 2000);
|
||||
}
|
||||
if (log && log.includes('重启面板完成')) {
|
||||
message.warning({ content: '系统将在5秒后刷新', duration: 5 });
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user