Files
Nexus/docs/changelog/2026-06-07-servers-batch-detect-path-restore.md
T
Nexus Agent a225b655d9 feat(frontend): 恢复服务器批量检测路径并修复推送目标路径
补回 SPA 迁移丢失的 detect-path 确认框与结果弹窗,推送页留空走各机 target_path,文件页默认 50 条/页。
2026-06-08 00:56:35 +08:00

1.3 KiB
Raw Blame History

2026-06-07 服务器列表批量检测目标路径(SPA 补回)

摘要

Vue SPA 迁移后丢失的「检测目标路径」批量操作已补回,对齐旧版 servers.htmlcommit 3c7036b):确认对话框、逐台结果弹窗、列表行内编辑。

动机

  • 后端 POST /api/servers/batch/detect-path 自 2026-05-28 存在,SPA 未移植 UI
  • 功能指南 §12.2 未收录该端点
  • 设计文档 2026-05-17-server-add-optimize §4.3 要求列表可编辑 target_path

涉及文件

  • frontend/src/components/servers/BatchAgentResultDialog.vue(新建)— 批量 SSH 操作结果弹窗
  • frontend/src/pages/ServersPage.vue — 检测确认框、结果弹窗、工具栏常驻「检测路径」按钮、行内编辑
  • frontend/src/utils/serverSelection.tsBatchAgentResultItem.stdout
  • docs/project/nexus-functional-development-guide.md — §9.3 / §12.2 补文档

迁移 / 重启

无后端变更。仅前端 vite build 后部署 web/app/

验证

cd frontend && npm run build
# 服务器页:多选 → 「检测目标路径」→ 确认 workerman.bat 说明 → 结果弹窗逐台 stdout/error
# 目标路径列 ✏️ → 回车保存 → 列表刷新
# 安装/升级/卸载 Agent 同样弹出 BatchAgentResultDialog