From b5484c8adbd8012a6889be1aa761c0a3808e6e2a Mon Sep 17 00:00:00 2001 From: kx_guo Date: Mon, 14 Sep 2026 15:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BF=AB=E6=8D=B7=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=8E=E9=A3=8E=E9=99=A9=E9=A1=B9=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assistant/AssistantComposer.vue | 16 +++++++++++- .../assistant/AssistantResponseCard.vue | 20 -------------- src/components/assistant/AssistantWelcome.vue | 17 ++++++++++-- src/components/assistant/RiskAnalysisCard.vue | 25 +----------------- src/components/layout/AppHeader.vue | 10 +++---- src/pages/ReviewPage.vue | 26 +++++++++---------- src/pages/RiskAssistantPage.vue | 22 ++++++++-------- 7 files changed, 60 insertions(+), 76 deletions(-) diff --git a/src/components/assistant/AssistantComposer.vue b/src/components/assistant/AssistantComposer.vue index 1b4edbc..5cb4c99 100644 --- a/src/components/assistant/AssistantComposer.vue +++ b/src/components/assistant/AssistantComposer.vue @@ -11,6 +11,8 @@ import { Search, } from "@lucide/vue"; +import { ref } from "vue"; + import { featureFlags } from "@/config/features"; defineProps<{ modelValue: string; loading: boolean; canUpload: boolean }>(); @@ -31,6 +33,13 @@ const emit = defineEmits<{ | "voice", ]; }>(); +const textarea = ref(null); + +function focus() { + textarea.value?.focus(); +} + +defineExpose({ focus }); const functions: Array<{ title: string; @@ -115,6 +124,7 @@ const functions: Array<{