Vanessa 2023-09-30 13:57:40 +08:00
parent 1063f50375
commit 2dae1200b4
8 changed files with 97 additions and 51 deletions

View file

@ -257,7 +257,12 @@ export class Files extends Model {
const pathString = target.parentElement.getAttribute("data-path");
if (!window.siyuan.config.readonly) {
if (type === "new") {
newFile(options.app, notebookId, pathString);
newFile({
app: options.app,
notebookId,
currentPath:pathString,
useSavePath: false
});
} else if (type === "more-root") {
initNavigationMenu(options.app, target.parentElement).popup({
x: event.clientX,