From ef41b59822ad16e2388e22f72dc0a4967d1b9724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Thu, 27 Nov 2025 17:56:21 +0800 Subject: [PATCH] refactor: refactor quick question style (#511) --- frontend/src/views/chat/QuickQuestion.vue | 18 ++++++++++-------- frontend/src/views/chat/RecommendQuestion.vue | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/chat/QuickQuestion.vue b/frontend/src/views/chat/QuickQuestion.vue index 6c17a79b..5c7a2998 100644 --- a/frontend/src/views/chat/QuickQuestion.vue +++ b/frontend/src/views/chat/QuickQuestion.vue @@ -5,18 +5,20 @@ import { Close } from '@element-plus/icons-vue' import RecommendQuestion from '@/views/chat/RecommendQuestion.vue' import { ChatInfo } from '@/api/chat.ts' import RecentQuestion from '@/views/chat/RecentQuestion.vue' -const visible = ref(false) const activeName = ref('recommend') const recommendQuestionRef = ref() - +const popoverRef = ref() const getRecommendQuestions = () => { recommendQuestionRef.value.getRecommendQuestions() } const quickAsk = (question: string) => { emits('quickAsk', question) - visible.value = false + hiddenProps() } +const hiddenProps = () => { + popoverRef.value.hide() +} const onChatStop = () => { emits('stop') } @@ -50,13 +52,14 @@ const props = withDefaults(