From 01940692c417d68cfd10d755e14909ed7b09d9e0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 3 Feb 2023 22:42:29 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/4494 --- app/src/util/newFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts index 6020150c3..87b12e4de 100644 --- a/app/src/util/newFile.ts +++ b/app/src/util/newFile.ts @@ -68,7 +68,7 @@ export const newFile = (notebookId?: string, currentPath?: string, paths?: strin } else { fetchPost("/api/filetree/getHPathByPath", { notebook: notebookId, - path: currentPath + path: currentPath.endsWith(".sy") ? currentPath : currentPath + ".sy" }, (responseHPath) => { fetchPost("/api/filetree/createDocWithMd", { notebook: notebookId,