From 1be46ef5fdc4aad0ec385cdd88a805ab7e8008b1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 24 May 2024 09:40:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11517 --- app/src/dialog/processSystem.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 626e6dfba64..511c484b95b 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -67,8 +67,13 @@ export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRoot const allModels = getAllModels(); allModels.editor.forEach(item => { if (data.upsertRootIDs.includes(item.editor.protyle.block.rootID)) { - reloadProtyle(item.editor.protyle, false); - updateTitle(item.editor.protyle.block.rootID, item.parent, item.editor.protyle); + fetchPost("/api/block/getDocInfo", { + id: item.editor.protyle.block.rootID, + }, (response) => { + item.editor.protyle.wysiwyg.renderCustom(response.data.ial); + reloadProtyle(item.editor.protyle, false); + updateTitle(item.editor.protyle.block.rootID, item.parent, item.editor.protyle); + }); } else if (data.removeRootIDs.includes(item.editor.protyle.block.rootID)) { item.parent.parent.removeTab(item.parent.id, false, false); delete window.siyuan.storage[Constants.LOCAL_FILEPOSITION][item.editor.protyle.block.rootID];