From 76c9758f0a683ba7403ee995e964f78c28420193 Mon Sep 17 00:00:00 2001 From: Jokul Date: Sun, 12 Jul 2026 00:01:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=88=87=E6=8D=A2redis?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=93=8D=E4=BD=9C=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/connection/ConnectionCard.vue | 7 +- .../src/components/layout/MainArea.vue | 65 ------------------- 2 files changed, 4 insertions(+), 68 deletions(-) diff --git a/src/renderer/src/components/connection/ConnectionCard.vue b/src/renderer/src/components/connection/ConnectionCard.vue index 2a1df8d..549cc69 100644 --- a/src/renderer/src/components/connection/ConnectionCard.vue +++ b/src/renderer/src/components/connection/ConnectionCard.vue @@ -32,9 +32,10 @@ function onDragStart(e: DragEvent) { '--card-color': assignedColor || 'transparent', 'border-left': assignedColor ? `3px solid ${assignedColor}` : undefined, }" - draggable="true" - @dragstart="onDragStart" - > + draggable="true" + @dragstart="onDragStart" + @click="connStore.switchTo(connection.id)" +>
{{ connection.name }}
diff --git a/src/renderer/src/components/layout/MainArea.vue b/src/renderer/src/components/layout/MainArea.vue index 392d12e..da45d46 100644 --- a/src/renderer/src/components/layout/MainArea.vue +++ b/src/renderer/src/components/layout/MainArea.vue @@ -156,11 +156,6 @@ function restoreTabState(connId: string) { } } -// Connected connections for switcher -const connectedConnections = computed(() => - connStore.connections.filter(c => connStore.connectedIds.includes(c.id)) -) - // Switch active connection, save/restore tabs watch( () => connStore.activeId, @@ -206,28 +201,6 @@ onUnmounted(() => {