feat: 支持应用内多 SSH 终端标签页

- 新增 terminalTabs store 管理标签页状态
- 新增 TerminalWorkspaceView 终端工作区视图
- 修改 ConnectionsView 终端按钮改用标签页模式
- 修改 TerminalView 作为兼容入口自动跳转到工作区
- 同一连接默认只保留一个标签页
- 切换标签时保持各自 SSH 会话不断开
This commit is contained in:
liumangmang
2026-03-18 23:05:03 +08:00
parent c387cc2487
commit 51b479a8f9
6 changed files with 229 additions and 52 deletions

View File

@@ -24,16 +24,21 @@ const routes: RouteRecordRaw[] = [
name: 'Transfers',
component: () => import('../views/TransfersView.vue'),
},
{
path: 'connections',
name: 'Connections',
component: () => import('../views/ConnectionsView.vue'),
},
{
path: 'connections',
name: 'Connections',
component: () => import('../views/ConnectionsView.vue'),
},
{
path: 'terminal',
name: 'TerminalWorkspace',
component: () => import('../views/TerminalWorkspaceView.vue'),
},
{
path: 'terminal/:id',
name: 'Terminal',
component: () => import('../views/TerminalView.vue'),
},
},
{
path: 'sftp/:id',
name: 'Sftp',