mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
9a15b466f3
commit
9c37468386
1 changed files with 6 additions and 0 deletions
|
@ -1016,6 +1016,12 @@ data-type="navigation-root" data-path="/">
|
||||||
} else {
|
} else {
|
||||||
sourceElement.remove();
|
sourceElement.remove();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
const parentElement = this.element.querySelector(`ul[data-url="${response.data.fromNotebook}"] li[data-path="${pathPosix().dirname(response.data.fromPath)}.sy"]`) as HTMLElement;
|
||||||
|
if (parentElement && parentElement.getAttribute("data-count") === "1") {
|
||||||
|
parentElement.querySelector(".b3-list-item__toggle").classList.add(".fn__hidden");
|
||||||
|
parentElement.querySelector(".b3-list-item__arrow").classList.remove("b3-list-item__arrow--open");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const newElement = this.element.querySelector(`[data-url="${response.data.toNotebook}"] li[data-path="${response.data.toPath}"]`) as HTMLElement;
|
const newElement = this.element.querySelector(`[data-url="${response.data.toNotebook}"] li[data-path="${response.data.toPath}"]`) as HTMLElement;
|
||||||
// 更新移动到的新文件夹
|
// 更新移动到的新文件夹
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue