mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
25c2901eda
commit
ce4fe65cd9
1 changed files with 1 additions and 2 deletions
|
|
@ -560,10 +560,9 @@ export class Files extends Model {
|
||||||
notebook: toURL
|
notebook: toURL
|
||||||
}, () => {
|
}, () => {
|
||||||
if (hasMove) {
|
if (hasMove) {
|
||||||
// 移动并排序后,会推送 moveDoc,但此时还没有 sort。 https://github.com/siyuan-note/siyuan/issues/4270
|
|
||||||
fetchPost("/api/filetree/listDocsByPath", {
|
fetchPost("/api/filetree/listDocsByPath", {
|
||||||
notebook: toURL,
|
notebook: toURL,
|
||||||
path: pathPosix().dirname(toPath),
|
path: toDir === "/" ? "/" : toDir + ".sy",
|
||||||
sort: window.siyuan.config.fileTree.sort,
|
sort: window.siyuan.config.fileTree.sort,
|
||||||
}, response => {
|
}, response => {
|
||||||
if (response.data.path === "/" && response.data.files.length === 0) {
|
if (response.data.path === "/" && response.data.files.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue