An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix open encrypted notebook ReferenceError: app is not defined #18034
Danielaeef23a38f31
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex bdeaa75d2d..e9ac4175c0 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -113,7 +113,7 @@ export class Files extends Model {const liElement = target.closest("li");// 加密笔记本关闭(锁定)时点"打开"先弹解锁框,解锁成功后再挂载if (liElement && liElement.getAttribute("data-encrypted") === "true") {- openEncryptedNotebook(app, notebookId, liElement.querySelector(".b3-list-item__text").textContent);+ openEncryptedNotebook(this.app, notebookId, liElement.querySelector(".b3-list-item__text").textContent);} else {fetchPost("/api/notebook/openNotebook", {notebook: notebookId