Skip to content

Commit c4b4ad1

Browse files
authored
refactor: Support 10 custom recommendation questions. (#517)
1 parent d28295d commit c4b4ad1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

frontend/src/views/chat/QuickQuestion.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const retrieveQuestions = () => {
1919
recentQuestionRef.value.getRecentQuestions()
2020
}
2121
const quickAsk = (question: string) => {
22+
if (props.disabled) {
23+
return
24+
}
2225
emits('quickAsk', question)
2326
hiddenProps()
2427
}

frontend/src/views/ds/RecommendedProblemConfigDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ defineExpose({
119119
<el-icon class="delete-item"><Delete @click="deleteRecommendedProblem(index)" /></el-icon>
120120
</el-row>
121121
</el-form-item>
122-
<div v-if="state.recommended.recommendedProblemList.length < 4">
122+
<div v-if="state.recommended.recommendedProblemList.length < 10">
123123
<el-button text @click="addRecommendedProblem">
124124
{{ $t('datasource.add_question') }}</el-button
125125
>

frontend/src/views/system/prompt/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ const typeChange = (val: any) => {
528528
<template #icon>
529529
<icon_add_outlined></icon_add_outlined>
530530
</template>
531-
{{ $t('prompt.add_prompt_word') }}11
531+
{{ $t('prompt.add_prompt_word') }}
532532
</el-button>
533533
</div>
534534
</div>

0 commit comments

Comments
 (0)