From 245410c149bf0744d26de28cf1e150a91311fafe Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 23 Oct 2024 11:06:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E7=95=99=E4=B8=8A=E6=AC=A1?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84=E6=A8=A1=E5=9E=8B=E5=92=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047752 --user=刘瑞斌 【应用】-生成关联问题设置模型和提示词后,再次点击生成关联问题,默认显示用户上次设置的模型和提示词。 https://www.tapd.cn/57709429/s/1596140 --- ui/src/views/document/component/GenerateRelatedDialog.vue | 5 ----- ui/src/views/paragraph/component/GenerateRelatedDialog.vue | 6 ------ 2 files changed, 11 deletions(-) diff --git a/ui/src/views/document/component/GenerateRelatedDialog.vue b/ui/src/views/document/component/GenerateRelatedDialog.vue index 8791c4be9..8c0764a9f 100644 --- a/ui/src/views/document/component/GenerateRelatedDialog.vue +++ b/ui/src/views/document/component/GenerateRelatedDialog.vue @@ -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() diff --git a/ui/src/views/paragraph/component/GenerateRelatedDialog.vue b/ui/src/views/paragraph/component/GenerateRelatedDialog.vue index af59e43b7..e5f185230 100644 --- a/ui/src/views/paragraph/component/GenerateRelatedDialog.vue +++ b/ui/src/views/paragraph/component/GenerateRelatedDialog.vue @@ -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()