mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
4acc006b13
commit
01940692c4
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ export const newFile = (notebookId?: string, currentPath?: string, paths?: strin
|
||||||
} else {
|
} else {
|
||||||
fetchPost("/api/filetree/getHPathByPath", {
|
fetchPost("/api/filetree/getHPathByPath", {
|
||||||
notebook: notebookId,
|
notebook: notebookId,
|
||||||
path: currentPath
|
path: currentPath.endsWith(".sy") ? currentPath : currentPath + ".sy"
|
||||||
}, (responseHPath) => {
|
}, (responseHPath) => {
|
||||||
fetchPost("/api/filetree/createDocWithMd", {
|
fetchPost("/api/filetree/createDocWithMd", {
|
||||||
notebook: notebookId,
|
notebook: notebookId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue