From 02f96d6f977704544ed87a8fe32867dc42edb3c4 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 20 Jun 2024 18:13:53 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AF=B9=E8=AF=9D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index d5d8c7c37..b719a048c 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -631,7 +631,9 @@ watch( onMounted(() => { setTimeout(() => { - quickInputRef.value.textarea.style.height = '0' + if (quickInputRef.value) { + quickInputRef.value.textarea.style.height = '0' + } }, 1000) })