From 97cc72754769e75b448c1a0c2f9d9896a748d527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E5=A4=A7?= Date: Tue, 7 Apr 2026 14:01:55 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.47=20=E4=BF=AE=E5=A4=8Dlogo=20404=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9A=E7=A7=BB=E9=99=A4=E7=89=88=E6=9C=AC=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=8C=E4=BF=AE=E5=A4=8Dstatic=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 8 ++++---- config/VERSION | 2 +- frontend/index.html | 2 +- frontend/src/pages/Home.jsx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index e43e400..2ec184f 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -66,10 +66,10 @@ uploads_dir = "uploads" os.makedirs(uploads_dir, exist_ok=True) app.mount("/uploads", StaticFiles(directory=uploads_dir), name="uploads") -# 挂载项目静态资源目录(可选,生产环境建议用 Nginx) -# static_dir = Path(__file__).parent.parent.parent / "static" -# if static_dir.exists(): -# app.mount("/static", StaticFiles(directory=str(static_dir)), name="static") +# 挂载项目静态资源目录 +static_dir = Path(__file__).parent.parent / "static" +if static_dir.exists(): + app.mount("/static", StaticFiles(directory=str(static_dir)), name="static") # 添加日志中间件 app.middleware("http")(logging_middleware) diff --git a/config/VERSION b/config/VERSION index 0c9e143..5306092 100644 --- a/config/VERSION +++ b/config/VERSION @@ -1 +1 @@ -VERSION=1.2.46 +VERSION=1.2.47 diff --git a/frontend/index.html b/frontend/index.html index 81ca7b3..44beab4 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - 甲辰收藏 v1.2.46 + 甲辰收藏 v1.2.47 diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index 816ccb6..1a044ca 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -110,7 +110,7 @@ export default function Home() { backdropFilter: 'blur(10px)' }}>
- 甲辰收藏 + 甲辰收藏
{user?.username || '用户'}
欢迎回来 👋