29 lines
963 B
Markdown
29 lines
963 B
Markdown
|
|
# 2026-06-08 — 凭据管理合并到服务器列表页
|
||
|
|
|
||
|
|
## 摘要
|
||
|
|
|
||
|
|
侧栏独立「凭据」页移除;服务器列表工具栏新增 **凭据** 按钮,点击弹出对话框,内含原密码预设 / SSH 密钥 / 数据库凭据全部功能。
|
||
|
|
|
||
|
|
## 动机
|
||
|
|
|
||
|
|
凭据主要用于服务器 SSH 与快速添加,与服务器页操作强相关,独立页增加导航成本。
|
||
|
|
|
||
|
|
## 涉及文件
|
||
|
|
|
||
|
|
- `frontend/src/components/credentials/CredentialsManager.vue` — 原凭据页逻辑抽取
|
||
|
|
- `frontend/src/components/credentials/CredentialsDialog.vue` — 对话框壳
|
||
|
|
- `frontend/src/pages/ServersPage.vue` — 凭据按钮 + 对话框
|
||
|
|
- `frontend/src/pages/CredentialsPage.vue` — 旧路由重定向
|
||
|
|
- `frontend/src/App.vue` — 侧栏移除凭据入口
|
||
|
|
|
||
|
|
## 兼容
|
||
|
|
|
||
|
|
- `#/credentials` 仍可用,自动跳转 `#/servers?credentials=1` 并打开对话框
|
||
|
|
|
||
|
|
## 验证
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cd frontend && npm run build
|
||
|
|
# 服务器页 → 凭据 → 三 Tab CRUD 与原先一致
|
||
|
|
```
|