Vanessa 2025-02-19 15:22:07 +08:00
parent 4573171fdd
commit 5bb03482df

View file

@ -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":