b72009718f026664282844ec39ac64ff03209741
根因分析: 1. EditorPage 是 StatelessWidget,savedJournalId 作为 build() 局部变量 每次重建都重置为 null,导致每次自动保存都走新建而非更新分支 2. 更新分支直接 repo.updateJournal(existing),没有把编辑器当前 状态(标题/心情/标签)合并到已有日记中 修复: - EditorPage 改为 StatefulWidget,_savedJournalId 存储在 State 中 - 更新分支用 existing.copyWith() 合并编辑器当前状态后保存
Description
暖记
Languages
Rust
49.4%
Dart
24.8%
TypeScript
17.8%
Python
2.4%
JavaScript
1.8%
Other
3.7%