mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
05cd94bc12
commit
9eaf181379
4 changed files with 48 additions and 13 deletions
|
|
@ -547,12 +547,17 @@ export const updateOutline = (models: IModels, protyle: IProtyle, reload = false
|
|||
if (blockId === item.blockId && !reload) {
|
||||
return;
|
||||
}
|
||||
if (protyle && !protyle.preview.element.classList.contains("fn__none")) {
|
||||
protyle.preview.render(protyle);
|
||||
return;
|
||||
}
|
||||
fetchPost("/api/outline/getDocOutline", {
|
||||
id: blockId,
|
||||
}, response => {
|
||||
if (!isCurrentEditor(blockId) || item.blockId === blockId) {
|
||||
if (!reload && (!isCurrentEditor(blockId) || item.blockId === blockId)) {
|
||||
return;
|
||||
}
|
||||
item.isPreview = false;
|
||||
item.update(response, blockId);
|
||||
if (protyle) {
|
||||
item.updateDocTitle(protyle.background.ial);
|
||||
|
|
@ -569,7 +574,6 @@ export const updateOutline = (models: IModels, protyle: IProtyle, reload = false
|
|||
item.updateDocTitle();
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue