diff --git a/backend/app/main.py b/backend/app/main.py index fe1ed73..9604d0e 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -687,7 +687,7 @@ if os.path.exists(frontend_path): @app.get("/") async def root(): """根路径,返回主应用页面""" - index_path = os.path.join(frontend_path, "index.html") + index_path = os.path.join(frontend_path, "trading.html") if os.path.exists(index_path): return FileResponse(index_path) return {"message": "页面不存在"} @@ -695,7 +695,7 @@ async def root(): @app.get("/app") async def app_page(): """主应用页面""" - index_path = os.path.join(frontend_path, "index.html") + index_path = os.path.join(frontend_path, "trading.html") if os.path.exists(index_path): return FileResponse(index_path) return {"message": "页面不存在"}