Merge remote-tracking branch 'origin/feature/workflow' into feature/workflow

This commit is contained in:
2026-07-08 11:56:22 +08:00
2 changed files with 4 additions and 10 deletions
+3 -10
View File
@@ -424,15 +424,8 @@ const handleSend = async (message: string) => {
nodes: nodeInputParams,
};
// 3. 收集文件
const fileUrls: string[] = [];
Object.values(mc.fieldFiles).forEach((files: any) => {
files.forEach((f: any) => {
if (f.url && !fileUrls.includes(f.url)) fileUrls.push(f.url);
});
});
// 4. 构建请求参数
// 3. 构建请求参数(外层 fileUrl 留给输入框附件,当前已禁用故保持空数组)
const params = {
flowId: selectedWorkflowDetail.value.id,
flowContent: updatedFlowContent,
@@ -440,12 +433,12 @@ const handleSend = async (message: string) => {
sessionId: sessionId,
desc: message,
flowName: selectedWorkflowDetail.value.flowName || '',
fileUrl: fileUrls,
fileUrl: [],
resultUrl: selectedWorkflowDetail.value.resultUrl || '',
templates: mc.templates || [],
};
// 5. 执行
// 4. 执行
await executeFlow(params);
// 标记完成(直接用 curSession 引用,避免切换会话后状态错乱)
curSession.status = 'completed';
+1
View File
@@ -4050,6 +4050,7 @@ const loadWorkflowFromDsl = (dsl: any) => {
modelConfig: n.modelConfig || null,
outputConfig: n.outputConfig || null,
inputSource: n.inputSource || null,
modelOutputFields: Array.isArray(n.modelOutputFields) ? n.modelOutputFields : null,
// 加载提示词和保存文件配置
isSaveFileEnabled: n.isSaveFile ?? false,
patchLayoutEnabled: n.patchLayout ?? false,