mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🐛
This commit is contained in:
parent
c7a74fc7bc
commit
0f4de03dec
1 changed files with 3 additions and 0 deletions
|
|
@ -1104,6 +1104,9 @@ data-type="navigation-root" data-path="/">
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const liElement = this.element.querySelector(`ul[data-url="${data.box}"] li[data-path="${data.path}"]`);
|
const liElement = this.element.querySelector(`ul[data-url="${data.box}"] li[data-path="${data.path}"]`);
|
||||||
|
if (!liElement) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (liElement.nextElementSibling && liElement.nextElementSibling.tagName === "UL") {
|
if (liElement.nextElementSibling && liElement.nextElementSibling.tagName === "UL") {
|
||||||
// 文件展开时,刷新
|
// 文件展开时,刷新
|
||||||
liElement.nextElementSibling.remove();
|
liElement.nextElementSibling.remove();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue