mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
b3105faf65
commit
36386eaea8
2 changed files with 11 additions and 44 deletions
|
|
@ -772,7 +772,9 @@ export class Files extends Model {
|
|||
if (!liElement) {
|
||||
const dirname = pathPosix().dirname(currentPath);
|
||||
if (dirname === "/") {
|
||||
this.getLeaf(treeElement.firstElementChild, notebookId, true);
|
||||
if (treeElement.firstElementChild.querySelector(".b3-list-item__arrow--open")) {
|
||||
this.getLeaf(treeElement.firstElementChild, notebookId, true);
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
currentPath = dirname + ".sy";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue