mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user