fix: 初始化时落盘迁移结果,确保旧演示地址写入 localStorage

This commit is contained in:
logan committed 2026-09-18 01:09:34 +08:00
1 parent 2ff3f4270b
commit ee3b819fc5
1 file changed
+2
+2
View File
@@ -252,6 +252,8 @@ export const useWorkspace = create<WorkspaceStore>((set, get) => {
});
}
set({ expanded });
// 落盘:确保迁移(旧演示地址)与自愈(补 data)结果写回 localStorage
schedulePersist(get());
},
addCollection(name) {