From b09184f2d99fe4e0395826f6225e5d91ff8c8df6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 28 Nov 2025 14:33:05 +0800 Subject: [PATCH] refactor: Support 10 custom recommendation questions. --- frontend/src/views/chat/QuickQuestion.vue | 3 +++ frontend/src/views/ds/RecommendedProblemConfigDialog.vue | 2 +- frontend/src/views/system/prompt/index.vue | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/chat/QuickQuestion.vue b/frontend/src/views/chat/QuickQuestion.vue index 7d86ab5f6..80f5b447f 100644 --- a/frontend/src/views/chat/QuickQuestion.vue +++ b/frontend/src/views/chat/QuickQuestion.vue @@ -19,6 +19,9 @@ const retrieveQuestions = () => { recentQuestionRef.value.getRecentQuestions() } const quickAsk = (question: string) => { + if (props.disabled) { + return + } emits('quickAsk', question) hiddenProps() } diff --git a/frontend/src/views/ds/RecommendedProblemConfigDialog.vue b/frontend/src/views/ds/RecommendedProblemConfigDialog.vue index 97f7f09d8..66dea695c 100644 --- a/frontend/src/views/ds/RecommendedProblemConfigDialog.vue +++ b/frontend/src/views/ds/RecommendedProblemConfigDialog.vue @@ -119,7 +119,7 @@ defineExpose({ -
+
{{ $t('datasource.add_question') }} diff --git a/frontend/src/views/system/prompt/index.vue b/frontend/src/views/system/prompt/index.vue index ea45b7e6b..68a25bea2 100644 --- a/frontend/src/views/system/prompt/index.vue +++ b/frontend/src/views/system/prompt/index.vue @@ -528,7 +528,7 @@ const typeChange = (val: any) => { - {{ $t('prompt.add_prompt_word') }}11 + {{ $t('prompt.add_prompt_word') }}