From 50f55bd6dcf70042495930a231a8c8ecabede4d6 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 4 May 2026 23:51:33 +0800 Subject: [PATCH] feat: enhance connection selection UI with database icons --- src/components/editor/AiAssistant.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/editor/AiAssistant.vue b/src/components/editor/AiAssistant.vue index 79e86720d9..540b7106c6 100644 --- a/src/components/editor/AiAssistant.vue +++ b/src/components/editor/AiAssistant.vue @@ -21,6 +21,8 @@ import { Label } from "@/components/ui/label"; import { ScrollArea } from "@/components/ui/scroll-area"; import { useSettingsStore, type AiProvider, type AiApiStyle } from "@/stores/settingsStore"; import { useConnectionStore } from "@/stores/connectionStore"; +import { connectionIconType } from "@/lib/connectionPresentation"; +import DatabaseIcon from "@/components/icons/DatabaseIcon.vue"; import { useQueryStore } from "@/stores/queryStore"; import { buildAiContext, runAiStream, type AiAction } from "@/lib/ai"; import { @@ -525,14 +527,18 @@ function formatInlineText(text: string): string {
- + +