From 9da3d7a9ecfe6caaa8c966b86edfe5bac20d0eb9 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 29 Oct 2024 10:59:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=89=8D=E7=AB=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/index.vue | 2 +- .../views/application/ApplicationSetting.vue | 22 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index bf3eb8fe9..39491a62f 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -369,7 +369,7 @@ function handleInputFieldList() { // 给变量赋默认值, 最后一个对话记录的值 const record = chatList.value[chatList.value.length - 1] let default_value: any = {} - if (record) { + if (record && record.length) { record.execution_details[0].global_fields?.reduce((pre: any, next: any) => { pre[next.key] = next.value return pre diff --git a/ui/src/views/application/ApplicationSetting.vue b/ui/src/views/application/ApplicationSetting.vue index e5e6043c9..1f7757c22 100644 --- a/ui/src/views/application/ApplicationSetting.vue +++ b/ui/src/views/application/ApplicationSetting.vue @@ -330,7 +330,7 @@ 公用 - + - + @@ -412,7 +412,7 @@ 浏览器播放(免费) TTS模型 @@ -707,7 +707,11 @@ const openTTSParamSettingDialog = () => { MsgSuccess(t('请选择语音播放模型')) return } - TTSModeParamSettingDialogRef.value?.open(model_id, id, applicationForm.value.tts_model_params_setting) + TTSModeParamSettingDialogRef.value?.open( + model_id, + id, + applicationForm.value.tts_model_params_setting + ) } const openParamSettingDialog = () => {