浏览代码

:art: https://github.com/siyuan-note/siyuan/issues/12029#issuecomment-2327872613

Vanessa 10 月之前
父节点
当前提交
da7aad062d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/layout/dock/Outline.ts

+ 1 - 1
app/src/layout/dock/Outline.ts

@@ -160,10 +160,10 @@ export class Outline extends Model {
             } else {
                 iconElement.classList.add("block__icon--active");
                 window.siyuan.storage[Constants.LOCAL_OUTLINE].keepExpand = true;
+                this.tree.expandAll();
             }
 
             setStorageVal(Constants.LOCAL_OUTLINE, window.siyuan.storage[Constants.LOCAL_OUTLINE]);
-            this.tree.expandAll();
         });
         options.tab.panelElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
             if (this.type === "local") {