mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
76fd4c280a
commit
fedfd9b320
1 changed files with 2 additions and 6 deletions
|
|
@ -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]});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue