Files
Nexus/docs/changelog/2026-06-07-servers-batch-detect-path-restore.md
T
2026-07-08 22:31:31 +08:00

32 lines
1.3 KiB
Markdown
Raw 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.
# 2026-06-07 服务器列表批量检测目标路径(SPA 补回)
## 摘要
Vue SPA 迁移后丢失的「检测目标路径」批量操作已补回,对齐旧版 `servers.html`commit `3c7036b`):确认对话框、逐台结果弹窗、列表行内编辑。
## 动机
- 后端 `POST /api/servers/batch/detect-path` 自 2026-05-28 存在,SPA 未移植 UI
- 功能指南 §12.2 未收录该端点
- 设计文档 [2026-05-17-server-add-optimize](../design/specs/2026-05-17-server-add-optimize-design.md) §4.3 要求列表可编辑 `target_path`
## 涉及文件
- `frontend/src/components/servers/BatchAgentResultDialog.vue`(新建)— 批量 SSH 操作结果弹窗
- `frontend/src/pages/ServersPage.vue` — 检测确认框、结果弹窗、工具栏常驻「检测路径」按钮、行内编辑
- `frontend/src/utils/serverSelection.ts``BatchAgentResultItem.stdout`
- `docs/project/nexus-functional-development-guide.md` — §9.3 / §12.2 补文档
## 迁移 / 重启
无后端变更。仅前端 `vite build` 后部署 `web/app/`
## 验证
```bash
cd frontend && npm run build
# 服务器页:多选 → 「检测目标路径」→ 确认 workerman.bat 说明 → 结果弹窗逐台 stdout/error
# 目标路径列 ✏️ → 回车保存 → 列表刷新
# 安装/升级/卸载 Agent 同样弹出 BatchAgentResultDialog
```