Ver Fonte

:iphone: https://github.com/siyuan-note/siyuan/issues/1359 批量移动

Vanessa há 2 anos atrás
pai
commit
41a4d2fe9c
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      app/src/layout/dock/Files.ts

+ 2 - 0
app/src/layout/dock/Files.ts

@@ -420,6 +420,7 @@ export class Files extends Model {
             });
             if (newElement.classList.contains("dragover")) {
                 await fetchPost("/api/filetree/moveDocs", {
+                    toNotebook: toURL,
                     fromPaths,
                     toPath,
                 });
@@ -447,6 +448,7 @@ export class Files extends Model {
                     const toDir = pathPosix().dirname(toPath);
                     if (fromPaths.length > 0) {
                         await fetchPost("/api/filetree/moveDocs", {
+                            toNotebook: toURL,
                             fromPaths,
                             toPath: toDir === "/" ? "/" : toDir + ".sy",
                         });