An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/5804
Vanessa510d268ba2fb
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.tsindex 963759858d..0c5097541c 100644--- a/app/src/layout/dock/Outline.ts+++ b/app/src/layout/dock/Outline.ts@@ -93,10 +93,10 @@ export class Outline extends Model {data: null,click: (element: HTMLElement) => {const id = element.getAttribute("data-node-id");- fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {+ fetchPost("/api/attr/getBlockAttrs", {id}, (attrResponse) => {openFileById({id,- action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SETID, Constants.CB_GET_CONTEXT, Constants.CB_GET_HTML],+ action: attrResponse.data["heading-fold"] === "1" ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SETID, Constants.CB_GET_CONTEXT, Constants.CB_GET_HTML],});});}