diff --git a/apps/application/flow/workflow_manage.py b/apps/application/flow/workflow_manage.py
index adbfd83af..b051f043e 100644
--- a/apps/application/flow/workflow_manage.py
+++ b/apps/application/flow/workflow_manage.py
@@ -460,11 +460,12 @@ class WorkflowManage:
self.params['chat_record_id'],
current_node.id,
current_node.up_node_id_list,
- str(e), False, 0, 0, {'node_is_end': True})
+ str(e), False, 0, 0,
+ {'node_is_end': True, 'node_type': current_node.type,
+ 'view_type': current_node.view_type})
if not self.node_chunk_manage.contains(node_chunk):
self.node_chunk_manage.add_node_chunk(node_chunk)
- node_chunk.add_chunk(chunk)
- node_chunk.end()
+ node_chunk.end(chunk)
current_node.get_write_error_context(e)
self.status = 500
diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts
index bc9412c03..bd4edeca8 100644
--- a/ui/src/api/type/application.ts
+++ b/ui/src/api/type/application.ts
@@ -293,7 +293,6 @@ export class ChatManagement {
*/
static write(chatRecordId: string) {
const chatRecord = this.chatMessageContainer[chatRecordId]
- console.log('chatRecord', chatRecordId, this.chatMessageContainer, chatRecord)
if (chatRecord) {
chatRecord.write()
}
diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue
index c39e95c60..fc89c08bd 100644
--- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue
+++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue
@@ -341,7 +341,7 @@
{{ f.label.label }}:
- {{ item.form_data[f.field] }}
+ {{ (item.form_data?item.form_data:{})[f.field] }}
@@ -467,7 +467,6 @@ watch(dialogVisible, (bool) => {
const open = (data: any) => {
detail.value = cloneDeep(data)
- console.log(detail.value)
dialogVisible.value = true
}
onBeforeUnmount(() => {
diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue
index 1a75737bb..532869633 100644
--- a/ui/src/components/ai-chat/component/answer-content/index.vue
+++ b/ui/src/components/ai-chat/component/answer-content/index.vue
@@ -14,6 +14,7 @@
source=" 抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。"
>
{
if (type === 'old') {
- props.chatRecord.answer_text_list.push('')
+ add_answer_text_list( props.chatRecord.answer_text_list)
props.sendMessage(question, other_params_data, props.chatRecord)
props.chatManagement.write(props.chatRecord.id)
} else {
props.sendMessage(question, other_params_data)
}
}
+const add_answer_text_list=(answer_text_list:Array)=>{
+ answer_text_list.push('')
+}
function showSource(row: any) {
if (props.type === 'log') {
diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue
index 5c0d505c4..e04ab70e4 100644
--- a/ui/src/components/ai-chat/index.vue
+++ b/ui/src/components/ai-chat/index.vue
@@ -273,7 +273,6 @@ const errorWrite = (chat: any, message?: string) => {
function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_params_data?: any) {
loading.value = true
- console.log(chat)
if (!chat) {
chat = reactive({
id: randomId(),
diff --git a/ui/src/components/markdown/FormRander.vue b/ui/src/components/markdown/FormRander.vue
index f58dc37d7..1d675e8b4 100644
--- a/ui/src/components/markdown/FormRander.vue
+++ b/ui/src/components/markdown/FormRander.vue
@@ -10,7 +10,7 @@
v-model="form_data"
:model="form_data"
>
- 提交
@@ -18,10 +18,13 @@