mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: 保留上次选择的模型和提示词
--bug=1047752 --user=刘瑞斌 【应用】-生成关联问题设置模型和提示词后,再次点击生成关联问题,默认显示用户上次设置的模型和提示词。 https://www.tapd.cn/57709429/s/1596140
This commit is contained in:
parent
b14971e79d
commit
245410c149
|
|
@ -162,11 +162,6 @@ const rules = reactive({
|
|||
prompt: [{ required: true, message: '请输入提示词', trigger: 'blur' }]
|
||||
})
|
||||
|
||||
watch(dialogVisible, (bool) => {
|
||||
if (!bool) {
|
||||
form.value.model_id = ''
|
||||
}
|
||||
})
|
||||
|
||||
const open = (document_ids: string[]) => {
|
||||
getProvider()
|
||||
|
|
|
|||
|
|
@ -163,12 +163,6 @@ const rules = reactive({
|
|||
prompt: [{ required: true, message: '请输入提示词', trigger: 'blur' }]
|
||||
})
|
||||
|
||||
watch(dialogVisible, (bool) => {
|
||||
if (!bool) {
|
||||
form.value.model_id = ''
|
||||
}
|
||||
})
|
||||
|
||||
const open = (paragraph_ids: string[]) => {
|
||||
getProvider()
|
||||
getModel()
|
||||
|
|
|
|||
Loading…
Reference in New Issue