fix: 兼容插件仪表盘空返回

This commit is contained in:
jxxghp
2026-06-13 22:54:35 +08:00
parent 3a233014de
commit ed1e31d379
3 changed files with 73 additions and 2 deletions

View File

@@ -513,7 +513,7 @@ def plugin_dashboard(
plugin_id: str,
user_agent: Annotated[str | None, Header()] = None,
_: User = Depends(get_current_active_superuser),
) -> schemas.PluginDashboard:
) -> Optional[schemas.PluginDashboard]:
"""
根据插件ID获取插件仪表板
"""