mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
9eedc2bfb2
commit
41a4d2fe9c
1 changed files with 2 additions and 0 deletions
|
|
@ -420,6 +420,7 @@ export class Files extends Model {
|
||||||
});
|
});
|
||||||
if (newElement.classList.contains("dragover")) {
|
if (newElement.classList.contains("dragover")) {
|
||||||
await fetchPost("/api/filetree/moveDocs", {
|
await fetchPost("/api/filetree/moveDocs", {
|
||||||
|
toNotebook: toURL,
|
||||||
fromPaths,
|
fromPaths,
|
||||||
toPath,
|
toPath,
|
||||||
});
|
});
|
||||||
|
|
@ -447,6 +448,7 @@ export class Files extends Model {
|
||||||
const toDir = pathPosix().dirname(toPath);
|
const toDir = pathPosix().dirname(toPath);
|
||||||
if (fromPaths.length > 0) {
|
if (fromPaths.length > 0) {
|
||||||
await fetchPost("/api/filetree/moveDocs", {
|
await fetchPost("/api/filetree/moveDocs", {
|
||||||
|
toNotebook: toURL,
|
||||||
fromPaths,
|
fromPaths,
|
||||||
toPath: toDir === "/" ? "/" : toDir + ".sy",
|
toPath: toDir === "/" ? "/" : toDir + ".sy",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue