This commit is contained in:
Vanessa 2022-06-16 20:23:19 +08:00
parent 4bf4c1228c
commit c4360840c2
6 changed files with 16 additions and 25 deletions

View file

@ -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()) {