An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone: 标题为空的处理
Vanessa975fd55963e6
diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.tsindex df1b1ed03c..6584e1d4b0 100644--- a/app/src/mobile/editor.ts+++ b/app/src/mobile/editor.ts@@ -85,7 +85,7 @@ export const openMobileFileById = (id: string, hasContext?: boolean, action = [C}});}- (document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle;+ (document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle === "Untitled" ? "" : data.data.rootTitle;setEditor();closePanel();if (pushStack) {diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.tsindex 0048fce69c..a21fd53802 100644--- a/app/src/mobile/util/initFramework.ts+++ b/app/src/mobile/util/initFramework.ts@@ -115,6 +115,7 @@ export const initFramework = () => {const initEditorName = () => {const inputElement = document.getElementById("toolbarName") as HTMLInputElement;+ inputElement.setAttribute("placeholder", window.siyuan.languages._kernel[16]);inputElement.addEventListener("blur", () => {if (window.siyuan.config.readonly || document.querySelector("#toolbarEdit use").getAttribute("xlink:href") === "#iconEdit") {return;