1.3 KiB
1.3 KiB
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 §4.3 要求列表可编辑
target_path
涉及文件
frontend/src/components/servers/BatchAgentResultDialog.vue(新建)— 批量 SSH 操作结果弹窗frontend/src/pages/ServersPage.vue— 检测确认框、结果弹窗、工具栏常驻「检测路径」按钮、行内编辑frontend/src/utils/serverSelection.ts—BatchAgentResultItem.stdoutdocs/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