From 5b2ccae4ae0ac61216d503694cfe481c5a6f8969 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 22 Aug 2024 15:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=81=9A=E7=84=A6=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E5=A4=84=E7=90=86=E6=B2=A1=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/packages/ai/AiCopilot.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/packages/ai/AiCopilot.vue b/ui/packages/ai/AiCopilot.vue index 50404fd2..ff1fdf19 100644 --- a/ui/packages/ai/AiCopilot.vue +++ b/ui/packages/ai/AiCopilot.vue @@ -143,6 +143,9 @@ export default { watch: { currentConversation(v) { v && this.getHistory({conversationId: v}) + }, + loading(v) { + !v && this.$nextTick(() => this.$refs.sendInput.focus()) } }, created() { @@ -192,7 +195,7 @@ export default {
+ @keydown.native="handleHotkey" :disabled="loading" :placeholder="loading?'正在思考中...':'请输入'" ref="sendInput"/>