mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: Support 10 custom recommendation questions. (#517)
This commit is contained in:
@@ -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
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user