From 73fa6e32646e119f1c94ca19934d0ef2e0cf768b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 23 Feb 2024 22:35:19 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10400 --- app/src/editor/util.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index 49f14803d..cf990aff7 100644 --- a/app/src/editor/util.ts +++ b/app/src/editor/util.ts @@ -532,14 +532,14 @@ export const updatePanelByEditor = (options: { } } } - // 切换页签或关闭所有页签时,需更新对应的面板 - const models = getAllModels(); - updateOutline(models, options.protyle, options.reload); - updateBacklinkGraph(models, options.protyle); options.protyle.app.plugins.forEach(item => { item.eventBus.emit("switch-protyle", {protyle: options.protyle}); }); } + // 切换页签或关闭所有页签时,需更新对应的面板 + const models = getAllModels(); + updateOutline(models, options.protyle, options.reload); + updateBacklinkGraph(models, options.protyle); }; export const isCurrentEditor = (blockId: string) => {