fix: 保留上次选择的模型和提示词

--bug=1047752 --user=刘瑞斌 【应用】-生成关联问题设置模型和提示词后,再次点击生成关联问题,默认显示用户上次设置的模型和提示词。 https://www.tapd.cn/57709429/s/1596140
This commit is contained in:
CaptainB 2024-10-23 11:06:25 +08:00 committed by 刘瑞斌
parent b14971e79d
commit 245410c149
2 changed files with 0 additions and 11 deletions

View File

@ -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()

View File

@ -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()