diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index 09a718d..4d54bb1 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -190,10 +190,13 @@ function handleSftpTabClose(tabId: string, connectionId: number, event: Event) {
- - - - + + diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 5bc102e..e280d6c 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -39,10 +39,11 @@ const routes: RouteRecordRaw[] = [ name: 'Terminal', component: () => import('../views/TerminalView.vue'), }, - { - path: 'sftp/:id', - name: 'Sftp', - component: () => import('../views/SftpView.vue'), + { + path: 'sftp/:id', + name: 'Sftp', + component: () => import('../views/SftpView.vue'), + meta: { keepAlive: true }, }, ], },