diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts index 482638da0..e1455a1aa 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]}); } }); });