mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 10:30:13 +01:00
This commit is contained in:
parent
4573171fdd
commit
5bb03482df
1 changed files with 10 additions and 0 deletions
|
|
@ -128,6 +128,16 @@ export class Protyle {
|
|||
case "reload":
|
||||
if (data.data === this.protyle.block.rootID) {
|
||||
reloadProtyle(this.protyle, false);
|
||||
getAllModels().outline.forEach(item => {
|
||||
if (item.blockId === data.data) {
|
||||
fetchPost("/api/outline/getDocOutline", {
|
||||
id: item.blockId,
|
||||
preview: item.isPreview
|
||||
}, response => {
|
||||
item.update(response);
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
break;
|
||||
case "refreshAttributeView":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue