mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
4bf4c1228c
commit
c4360840c2
6 changed files with 16 additions and 25 deletions
|
|
@ -54,7 +54,7 @@ export const newFile = (notebookId?: string, currentPath?: string, open?: boolea
|
|||
fetchPost("/api/filetree/createDoc", {
|
||||
notebook: notebookId,
|
||||
path: pathPosix().join(getDisplayName(currentPath, false, true), id + ".sy"),
|
||||
title: data.data.name || window.siyuan.languages.untitled,
|
||||
title: data.data.name || "Untitled",
|
||||
md: "",
|
||||
}, () => {
|
||||
if (open && !isMobile()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue