feat(workflow): 工作流提供方 - 集成 RunningHub 与 ComfyUI Bridge

This commit is contained in:
yepwait
2026-08-26 15:02:24 +08:00
committed by ddCat
parent 6141bd688c
commit 86fc3fda2f
82 changed files with 11405 additions and 248 deletions

View File

@@ -159,7 +159,12 @@ export function useCanvasNodeEditor({
}, [setNodes]);
const handleConfigNodeChange = useCallback((nodeId: string, patch: Partial<CanvasNodeMetadata>) => {
setNodes((current) => current.map((node) => (node.id === nodeId ? applyNodeConfigPatch(node, patch) : node)));
setNodes((current) => {
const next = current.map((node) => (node.id === nodeId ? applyNodeConfigPatch(node, patch) : node));
// 生成入口读取 nodesRef;同步写入,避免刚修改工作流比例就立即生成时仍提交旧值。
nodesRef.current = next;
return next;
});
if (!patch.assetCategory) return;
const node = nodesRef.current.find((item) => item.id === nodeId);
if (!node?.metadata?.content?.trim()) return;