.1502411993651747:e52a69a4110b658080c4d153b2afaa16_69f5eaf4dc48703ced6cfbaf.69f5eb0cdc48703ced6cfbb1.69f5eb0cd2611cda23eeaf21:Trae CN.T(2026/5/2 20:16:12)#3
Open
lovely90133 wants to merge 3 commits into
Conversation
|
@lovely90133 is attempting to deploy a commit to the bjornleonhenry Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本轮主要修复第二轮遗留的两个状态一致性问题。首先调整saveWorkflow逻辑,保存前会调用cleanInvalidEdges清理重复边等非法边,最终写入localStorage的是清理后的edges,并同步更新前端edges状态,避免重复边继续被保存。其次修复移动节点撤销/重做的历史快照问题,handleNodeDragStop不再依赖闭包里的nodes状态,而是使用ReactFlow拖拽结束回调传入的最新_nodes生成MOVE_NODE历史记录,减少拖动后撤销记录不准确的问题。