mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🐛 文档树自定义排序拖拽不稳定 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 {MenuItem} from "../../menus/Menu";
|
||||||
import {Editor} from "../../editor";
|
import {Editor} from "../../editor";
|
||||||
import {showMessage} from "../../dialog/message";
|
import {showMessage} from "../../dialog/message";
|
||||||
import {fetchPost} from "../../util/fetch";
|
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||||
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
||||||
import {mountHelp, newNotebook} from "../../util/mount";
|
import {mountHelp, newNotebook} from "../../util/mount";
|
||||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||||
|
|
@ -509,7 +509,7 @@ export class Files extends Model {
|
||||||
let hasMove = false;
|
let hasMove = false;
|
||||||
const toDir = pathPosix().dirname(toPath);
|
const toDir = pathPosix().dirname(toPath);
|
||||||
if (fromPaths.length > 0) {
|
if (fromPaths.length > 0) {
|
||||||
await fetchPost("/api/filetree/moveDocs", {
|
await fetchSyncPost("/api/filetree/moveDocs", {
|
||||||
toNotebook: toURL,
|
toNotebook: toURL,
|
||||||
fromPaths,
|
fromPaths,
|
||||||
toPath: toDir === "/" ? "/" : toDir + ".sy",
|
toPath: toDir === "/" ? "/" : toDir + ".sy",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue