Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art:

Vanessabba40d278f70
diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts
index c5913d4553..02e8d951ce 100644
--- a/app/src/util/newFile.ts
+++ b/app/src/util/newFile.ts
@@ -51,7 +51,7 @@ export const getNewFilePath = (useSavePath: boolean) => {
}
}
/// #else
- if (window.siyuan.mobile.editor) {
+ if (window.siyuan.mobile.editor && document.getElementById("empty").classList.contains("fn__none")) {
notebookId = window.siyuan.mobile.editor.protyle.notebookId;
if (useSavePath) {
currentPath = window.siyuan.mobile.editor.protyle.path;