refactor: extract useVariableList; properties add output variable

This commit is contained in:
zhaoying
2026-01-19 17:00:26 +08:00
parent ff6bdc1bed
commit 2d90b0c752
8 changed files with 562 additions and 835 deletions

View File

@@ -275,11 +275,6 @@ export const useWorkflowGraph = ({
}, 100)
}
if (edges.length) {
// 计算loop和iteration类型节点的数量
const loopIterationCount = nodes.filter(node =>
node.type === 'loop' || node.type === 'iteration'
).length;
// 去重处理对于if-else和question-classifier节点不同连接桩允许连接到相同节点
const uniqueEdges = edges.filter((edge, index, arr) => {
return arr.findIndex(e => {