测试git push

This commit is contained in:
whyour
2021-05-15 01:28:28 +08:00
parent 09ab572d79
commit 3574f69723
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -44,8 +44,12 @@ const CronLogModal = ({
getCronLog();
}, 2000);
}
if (log && log.includes('重启面板')) {
message.warning({ content: '系统将在5秒后刷新', duration: 5 });
if (
log &&
log.includes('重启面板') &&
cron.status === CrontabStatus.running
) {
message.warning({ content: '系统将在5秒后自动刷新', duration: 5 });
setTimeout(() => {
window.location.reload();
}, 5000);