测试git push

This commit is contained in:
whyour committed 2021-05-15 01:28:28 +08:00
1 parent 09ab572d79
commit 3574f69723
2 files changed
+7 -3

No files matched your search

+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);