From a435415f5da2f5ba8aa912ae4d30f6a2ee52260e Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 29 Jan 2026 11:05:20 +0800 Subject: [PATCH] fix: Fix the issue where the recommendation is not refreshed after retrieval --- frontend/src/views/chat/QuickQuestion.vue | 2 +- frontend/src/views/chat/RecommendQuestionQuick.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/chat/QuickQuestion.vue b/frontend/src/views/chat/QuickQuestion.vue index a4e93d4e..2f173b6d 100644 --- a/frontend/src/views/chat/QuickQuestion.vue +++ b/frontend/src/views/chat/QuickQuestion.vue @@ -15,7 +15,7 @@ const getRecommendQuestions = () => { const questions = '[]' const retrieveQuestions = () => { - recommendQuestionRef.value.getRecommendQuestions(10) + recommendQuestionRef.value.getRecommendQuestions(10, true) recentQuestionRef.value.getRecentQuestions() } const quickAsk = (question: string) => { diff --git a/frontend/src/views/chat/RecommendQuestionQuick.vue b/frontend/src/views/chat/RecommendQuestionQuick.vue index f07b1115..8995161d 100644 --- a/frontend/src/views/chat/RecommendQuestionQuick.vue +++ b/frontend/src/views/chat/RecommendQuestionQuick.vue @@ -48,11 +48,11 @@ function clickQuestion(question: string): void { const stopFlag = ref(false) -async function getRecommendQuestions(articles_number: number) { +async function getRecommendQuestions(articles_number: number, isRetrieve: false) { recommendedApi.get_datasource_recommended_base(props.datasource).then((res) => { if (res.recommended_config === 2) { questions.value = res.questions - } else if (currentChat.value.recommended_generate) { + } else if (currentChat.value.recommended_generate && !isRetrieve) { questions.value = currentChat.value.recommended_question as string } else { getRecommendQuestionsLLM(articles_number)