fix(web): i18n update

This commit is contained in:
zhaoying
2026-04-22 23:14:43 +08:00
parent 124e8d0639
commit 52bccfaede
4 changed files with 3 additions and 8 deletions

View File

@@ -451,11 +451,11 @@ export const useWorkflowGraph = ({
graphRef.current.addEdges(edgeList.filter(vo => vo !== null))
}
graphRef.current.centerContent()
// Initialize after completion, display nodes in visible area
if (nodes.length > 0 || edges.length > 0) {
setTimeout(() => {
if (graphRef.current) {
graphRef.current.centerContent()
graphRef.current.getNodes().forEach(node => {
if (!node.getData()?.cycle) node.toFront();
});