fix: 初始化时落盘迁移结果,确保旧演示地址写入 localStorage
This commit is contained in:
1 parent
2ff3f4270b
commit
ee3b819fc5
1 file changed
+2
@@ -252,6 +252,8 @@ export const useWorkspace = create<WorkspaceStore>((set, get) => {
|
||||
});
|
||||
}
|
||||
set({ expanded });
|
||||
// 落盘:确保迁移(旧演示地址)与自愈(补 data)结果写回 localStorage
|
||||
schedulePersist(get());
|
||||
},
|
||||
|
||||
addCollection(name) {
|
||||
|
||||
Reference in new issue
Block a user