diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 6b41bdce2..d63137bea 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -33,10 +33,17 @@ + + 检索内容 + {{ item.question }} + 检索结果 - + - {{ index + 1 + '' }} @@ -92,17 +99,28 @@ - - + + 角色设定 (System) - {{ item.branch_name }} + {{ item.system || '-' }} 历史记录 - + + + {{ history.role }}:{{ history.content }} + + 本次对话 @@ -115,10 +133,28 @@ ref="editorRef" editorId="preview-only" :modelValue="item.answer" + style="background: none" /> + + + + + 回复内容 + + + + + + + diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss index 2336fb32a..a39ac0b48 100644 --- a/ui/src/styles/app.scss +++ b/ui/src/styles/app.scss @@ -653,7 +653,3 @@ h5 { border: 1px solid var(--el-color-primary); } } - -.md-editor { - background: none; -} diff --git a/ui/src/workflow/common/CustomLine.vue b/ui/src/workflow/common/CustomLine.vue index 1c017aa54..68f9f019e 100644 --- a/ui/src/workflow/common/CustomLine.vue +++ b/ui/src/workflow/common/CustomLine.vue @@ -1,6 +1,12 @@ - - + + .custom-edge { color: var(--el-color-primary); - width: 22px; stroke: none; + width: 22px; } diff --git a/ui/src/workflow/common/app-node.ts b/ui/src/workflow/common/app-node.ts index fcfca2a54..b590ca403 100644 --- a/ui/src/workflow/common/app-node.ts +++ b/ui/src/workflow/common/app-node.ts @@ -66,9 +66,9 @@ class AppNode extends HtmlResize.view { { ...anchorData, x: x - 10, - y: y - 9, - width: 24, - height: 24 + y: y - 12, + width: 30, + height: 30 }, [ lh('div', { diff --git a/ui/src/workflow/common/validate.ts b/ui/src/workflow/common/validate.ts index 483e4ff3d..0bddef1c3 100644 --- a/ui/src/workflow/common/validate.ts +++ b/ui/src/workflow/common/validate.ts @@ -89,7 +89,6 @@ export class WorkFlowInstance { private is_valid_nodes() { for (const node of this.nodes) { if (node.type !== WorkflowType.Base && node.type !== WorkflowType.Start) { - console.log(node.properties.stepName) if (!this.edges.some((edge) => edge.targetNodeId === node.id)) { throw `未在流程中的节点:${node.properties.stepName}` }
+ {{ history.role }}:{{ history.content }} +