From be6c69f96fd9e9643ec1876850c3028db869f422 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 27 Nov 2025 17:55:17 +0800 Subject: [PATCH] refactor: refactor quick question style --- 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(