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 = () => {