From ba1acdc2ddf2c96aafe2a0b63728ee808fbee598 Mon Sep 17 00:00:00 2001 From: liumangmang Date: Mon, 30 Mar 2026 16:41:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=87=92=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E7=BB=84=E4=BB=B6keep-alive=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layouts/MainLayout.vue | 11 +++++++---- frontend/src/router/index.ts | 9 +++++---- 2 files changed, 12 insertions(+), 8 deletions(-) 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 }, }, ], },