feat(canvas): 画布同步 - 新增操作事务、预演保存与并发恢复能力

This commit is contained in:
ddcat666 committed 2026-10-11 22:36:47 +08:00
1 parent 6dedc5973c
commit 5f359f2b1d
63 files changed
+3234 -6192

No files matched your search

@@ -240,7 +240,10 @@ func cloudAgentPatchCoversDocument(before, after map[string]any) bool {
content := func(doc map[string]any) map[string]any {
result := map[string]any{}
for key, value := range doc {
if key != "nodes" && key != "connections" && key != "updatedAt" && key != "viewport" {
if key != "nodes" && key != "connections" && key != "id" && key != "revision" && key != "createdAt" && key != "updatedAt" && key != "viewport" {
if (key == "title" || key == "projectId") && value == "" {
continue
}
result[key] = value
}
}