🐛 文档树自定义排序拖拽不稳定 https://github.com/siyuan-note/siyuan/issues/7726
This commit is contained in:
parent
737510ff9b
commit
f3d572a8f6
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import {initFileMenu, initNavigationMenu, sortMenu} from "../../menus/navigation
|
|||
import {MenuItem} from "../../menus/Menu";
|
||||
import {Editor} from "../../editor";
|
||||
import {showMessage} from "../../dialog/message";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
||||
import {mountHelp, newNotebook} from "../../util/mount";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
|
@ -509,7 +509,7 @@ export class Files extends Model {
|
|||
let hasMove = false;
|
||||
const toDir = pathPosix().dirname(toPath);
|
||||
if (fromPaths.length > 0) {
|
||||
await fetchPost("/api/filetree/moveDocs", {
|
||||
await fetchSyncPost("/api/filetree/moveDocs", {
|
||||
toNotebook: toURL,
|
||||
fromPaths,
|
||||
toPath: toDir === "/" ? "/" : toDir + ".sy",
|
||||
|
|
Loading…
Add table
Reference in a new issue