From 734ef3c7138a6d4f1e27f1145b851ce3c77da6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E4=BF=8A=E7=94=B7?= Date: Tue, 13 Jan 2026 18:42:47 +0800 Subject: [PATCH] feat(home page): migrate static files --- api/app/services/home_page_service.py | 2 +- api/{ => app}/version_info.json | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename api/{ => app}/version_info.json (100%) diff --git a/api/app/services/home_page_service.py b/api/app/services/home_page_service.py index f5b7949e..a84a8214 100644 --- a/api/app/services/home_page_service.py +++ b/api/app/services/home_page_service.py @@ -83,7 +83,7 @@ class HomePageService: :return: 对应版本的详细介绍 """ # 1. 定义 JSON 文件路径(使用 Path 处理跨平台路径问题) - json_file_path = Path(__file__).parent.parent.parent / "version_info.json" + json_file_path = Path(__file__).parent.parent / "version_info.json" # 转换为绝对路径,便于调试 json_abs_path = json_file_path.resolve() diff --git a/api/version_info.json b/api/app/version_info.json similarity index 100% rename from api/version_info.json rename to api/app/version_info.json