diff --git a/.gitignore b/.gitignore index addb0a7..399ad79 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -*.log -. * \ No newline at end of file +logs/* +.* \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 71f58bd..cd8f536 100644 --- a/templates/index.html +++ b/templates/index.html @@ -62,6 +62,9 @@ // 关闭公告的函数 function closeAnnouncement() { const container = document.getElementById('announcement-container'); + if(!container){ + return; + } container.style.opacity = '0'; container.style.transform = 'translateY(-10px)'; container.style.transition = 'all 0.3s ease-out'; @@ -111,7 +114,7 @@