2
2
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user