Files
Nexus/docs/changelog/2026-06-07-servers-sync-logs-fix.md
2026-07-08 22:31:31 +08:00

25 lines
684 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog — 服务器详情同步日志修复
**日期**2026-06-07
## 摘要
修复服务器列表展开面板「同步日志」Tab 恒为空:前端误将 `GET /api/servers/{id}/logs` 的**数组**响应当作 `{ items: [] }` 解析。
## 动机
用户反馈服务器列表同步日志缺失;API 契约为 `response_model=list`SPA 使用 `res.items` 导致始终 `[]`
## 涉及文件
- `frontend/src/pages/ServersPage.vue`
## 迁移 / 重启
仅前端静态资源;`vite build` 后部署。
## 验证
1. 打开 `#/servers`,点击有推送记录的服务器行
2. 切到「同步日志」Tab → 应显示路径与状态(非「暂无同步日志」)