mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
86311447d1
commit
4acc006b13
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ export const newFile = (notebookId?: string, currentPath?: string, paths?: strin
|
||||||
}
|
}
|
||||||
const id = Lute.NewNodeID();
|
const id = Lute.NewNodeID();
|
||||||
const newPath = pathPosix().join(getDisplayName(currentPath, false, true), id + ".sy");
|
const newPath = pathPosix().join(getDisplayName(currentPath, false, true), id + ".sy");
|
||||||
if (paths.length > 0) {
|
if (paths) {
|
||||||
paths[paths.indexOf(undefined)] = newPath;
|
paths[paths.indexOf(undefined)] = newPath;
|
||||||
}
|
}
|
||||||
fetchPost("/api/filetree/createDoc", {
|
fetchPost("/api/filetree/createDoc", {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue