版本1.0.4 - 发布前准备
- 修复system.py缩进错误 - 优化前端页面样式(待重构) - 改进API接口结构 - 完善文档和自动化脚本 - 平台基本功能稳定运行
This commit is contained in:
@@ -39,7 +39,7 @@ app.include_router(admin.router)
|
||||
app.include_router(audit.router)
|
||||
|
||||
# 挂载前端
|
||||
FRONTEND_DIR = Path(__file__).parent.parent.parent / "frontend"
|
||||
FRONTEND_DIR = Path(__file__).parent.parent / "static"
|
||||
if FRONTEND_DIR.exists() and (FRONTEND_DIR / "index.html").exists():
|
||||
app.mount("/", StaticFiles(directory=str(FRONTEND_DIR), html=True), name="frontend")
|
||||
logger.info(f"Frontend mounted at / from {FRONTEND_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user