Merge pull request #844 from SuanmoSuanyangTechnology/feature/ui_upgrade_zy

fix(web): edge connected event
This commit is contained in:
yingzhao
2026-04-09 20:35:09 +08:00
committed by GitHub

View File

@@ -1056,9 +1056,7 @@ export const useWorkflowGraph = ({
}
});
graphRef.current?.getNodes().forEach(node => {
graphRef.current?.getNodes().forEach(node => {
if (node.getData()?.cycle) node.toFront();
});
if (node.getData()?.cycle) node.toFront();
node.getPorts().filter(p => p.group === 'right').forEach(p => {
node.setPortProp(p.id!, 'attrs/body/opacity', 1);
node.setPortProp(p.id!, 'attrs/hoverBody/opacity', 0);