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(