From 5bb03482dfc8eb9fc035e4ad34323376b8a8e565 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 19 Feb 2025 15:22:07 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14152 --- app/src/protyle/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index 353cd32eb..bc821d5e0 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -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":