From 98119feb2ac903ff3aa20bd0e86f3568f05cb579 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 27 Mar 2023 15:54:38 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7726 --- app/src/layout/dock/Files.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index 2ca818c47..439e136c6 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -560,10 +560,9 @@ export class Files extends Model { notebook: toURL }, () => { if (hasMove) { - // 移动并排序后,会推送 moveDoc,但此时还没有 sort。 https://github.com/siyuan-note/siyuan/issues/4270 fetchPost("/api/filetree/listDocsByPath", { notebook: toURL, - path: pathPosix().dirname(toPath), + path: toDir === "/" ? "/" : toDir + ".sy", sort: window.siyuan.config.fileTree.sort, }, response => { if (response.data.path === "/" && response.data.files.length === 0) {