From de1cf2bbc7e9256efc72bb4ac0be95686a665b18 Mon Sep 17 00:00:00 2001 From: dalaolala Date: Sat, 28 Feb 2026 15:34:48 +0800 Subject: [PATCH] feat: Implement quick connect layout change --- frontend/src/router/index.js | 23 ++-- frontend/src/views/QuickConnect.vue | 36 +----- frontend/src/views/QuickConnectLayout.vue | 121 ++++++++++++++++++++ frontend/src/views/QuickConnectTerminal.vue | 44 +++---- 4 files changed, 159 insertions(+), 65 deletions(-) create mode 100644 frontend/src/views/QuickConnectLayout.vue diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 9d69fcf..5df9620 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -34,15 +34,20 @@ const routes = [ }, { path: '/quick-connect', - name: 'QuickConnect', - component: () => import('@/views/QuickConnect.vue'), - meta: { requiresAuth: true } - }, - { - path: '/quick-connect-terminal', - name: 'QuickConnectTerminal', - component: () => import('@/views/QuickConnectTerminal.vue'), - meta: { requiresAuth: true } + component: () => import('@/views/QuickConnectLayout.vue'), + meta: { requiresAuth: true }, + children: [ + { + path: '', + name: 'QuickConnect', + component: () => import('@/views/QuickConnect.vue') + }, + { + path: 'terminal', + name: 'QuickConnectTerminal', + component: () => import('@/views/QuickConnectTerminal.vue') + } + ] }, { path: '/terminal-new', diff --git a/frontend/src/views/QuickConnect.vue b/frontend/src/views/QuickConnect.vue index 986fa75..7e447b8 100644 --- a/frontend/src/views/QuickConnect.vue +++ b/frontend/src/views/QuickConnect.vue @@ -1,17 +1,6 @@