From f5ebe297827a8dde702ff3f1cdcef131f851c3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E5=BF=97=E5=AE=8F?= Date: Wed, 5 Mar 2025 10:03:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B8=82=E5=9C=BA=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++-- templates/index.html | 25 +++++++++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) 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 @@