mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🚨
This commit is contained in:
parent
d1a2140cd9
commit
8c639f8a16
3 changed files with 6 additions and 7 deletions
|
|
@ -54,9 +54,9 @@ export const newFile = (notebookId?: string, currentPath?: string, open?: boolea
|
|||
}
|
||||
fetchPost("/api/filetree/getDocNameTemplate", {notebook: notebookId}, (data) => {
|
||||
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) {
|
||||
paths[paths.indexOf(undefined)] = newPath
|
||||
paths[paths.indexOf(undefined)] = newPath;
|
||||
}
|
||||
fetchPost("/api/filetree/createDoc", {
|
||||
notebook: notebookId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue