refactor: Support 10 custom recommendation questions. (#517)

This commit is contained in:
王嘉豪
2025-11-28 14:35:41 +08:00
committed by GitHub
parent d28295d934
commit c4b4ad1736
3 changed files with 5 additions and 2 deletions
@@ -19,6 +19,9 @@ const retrieveQuestions = () => {
recentQuestionRef.value.getRecentQuestions()
}
const quickAsk = (question: string) => {
if (props.disabled) {
return
}
emits('quickAsk', question)
hiddenProps()
}
@@ -119,7 +119,7 @@ defineExpose({
<el-icon class="delete-item"><Delete @click="deleteRecommendedProblem(index)" /></el-icon>
</el-row>
</el-form-item>
<div v-if="state.recommended.recommendedProblemList.length < 4">
<div v-if="state.recommended.recommendedProblemList.length < 10">
<el-button text @click="addRecommendedProblem">
{{ $t('datasource.add_question') }}</el-button
>
+1 -1
View File
@@ -528,7 +528,7 @@ const typeChange = (val: any) => {
<template #icon>
<icon_add_outlined></icon_add_outlined>
</template>
{{ $t('prompt.add_prompt_word') }}11
{{ $t('prompt.add_prompt_word') }}
</el-button>
</div>
</div>