Vanessa 2023-04-25 18:58:48 +08:00
parent 0384261c95
commit e8b91ee95b

View file

@ -28,7 +28,11 @@ export const reloadSync = (data:{upsertRootIDs: string[], removeRootIDs: string[
} }
}) })
allModels.graph.forEach(item => { allModels.graph.forEach(item => {
item.searchGraph(false); if (item.type === "local" && data.removeRootIDs.includes(item.rootId)) {
item.parent.parent.removeTab(item.parent.id, false, false, false);
} else if (item.type !== "local" || data.upsertRootIDs.includes(item.rootId)){
item.searchGraph(false);
}
}) })
allModels.outline.forEach(item => { allModels.outline.forEach(item => {
if (item.type === "local" && data.removeRootIDs.includes(item.blockId)) { if (item.type === "local" && data.removeRootIDs.includes(item.blockId)) {