Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/5144

Vanessafedfd9b3209e
diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts
index 482638da08..e1455a1aa9 100644
--- a/app/src/util/newFile.ts
+++ b/app/src/util/newFile.ts
@@ -58,12 +58,8 @@ export const newFile = (notebookId?: string, currentPath?: string, open?: boolea
title: data.data.name || window.siyuan.languages.untitled,
md: "",
}, () => {
- if (open) {
- if (isMobile()) {
- openMobileFileById(id, true);
- } else {
- openFileById({id, hasContext: true, action: [Constants.CB_GET_HL]});
- }
+ if (open && !isMobile()) {
+ openFileById({id, hasContext: true, action: [Constants.CB_GET_HL]});
}
});
});