This commit is contained in:
Vanessa 2023-03-27 15:54:38 +08:00 committed by Liang Ding
parent f3b36675cf
commit 98119feb2a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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) {