From 8d6a53462a8a24fd4049f175489786fc891bb027 Mon Sep 17 00:00:00 2001 From: mairuiming Date: Thu, 18 Dec 2025 14:07:34 +0800 Subject: [PATCH] 2 2 --- src/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index a0aa18e..73ddf79 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -355,6 +355,7 @@ export default function App() { if (deliverySnapStr && deliverySnapStr.trim() !== '') { setIsRestoringSnapshot(true); const snapshot = JSON.parse(deliverySnapStr); + restoreBaseBufferDaysFromSnapshot(snapshot); // 恢复页面与全局状态 if (snapshot.selectedLabels) setSelectedLabels(snapshot.selectedLabels); @@ -493,6 +494,7 @@ export default function App() { const snapshot = JSON.parse(snapStr); if (Array.isArray(snapshot.timelineResults)) { setIsRestoringSnapshot(true); + restoreBaseBufferDaysFromSnapshot(snapshot); if (snapshot.selectedLabels) setSelectedLabels(snapshot.selectedLabels); if (!mode && snapshot.mode) setMode(snapshot.mode); @@ -625,6 +627,7 @@ export default function App() { if (snapStr && snapStr.trim() !== '') { setIsRestoringSnapshot(true); // 开始快照还原 const snapshot = JSON.parse(snapStr); + restoreBaseBufferDaysFromSnapshot(snapshot); // 恢复页面状态 if (snapshot.selectedLabels) setSelectedLabels(snapshot.selectedLabels); // 保留当前模式,不覆写为快照的模式(避免调整模式被还原为生成模式) @@ -964,6 +967,7 @@ export default function App() { nodeSnapshots.length === globalSnapshotData.totalNodes) { // 重组完整的 timelineResults + restoreBaseBufferDaysFromSnapshot(globalSnapshotData); setTimelineResults(nodeSnapshots); setTimelineVisible(true);