mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +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,
|
title: data.data.name || window.siyuan.languages.untitled,
|
||||||
md: "",
|
md: "",
|
||||||
}, () => {
|
}, () => {
|
||||||
if (open) {
|
if (open && !isMobile()) {
|
||||||
if (isMobile()) {
|
openFileById({id, hasContext: true, action: [Constants.CB_GET_HL]});
|
||||||
openMobileFileById(id, true);
|
|
||||||
} else {
|
|
||||||
openFileById({id, hasContext: true, action: [Constants.CB_GET_HL]});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue