Vanessa 2025-02-18 17:39:00 +08:00
parent b3105faf65
commit 36386eaea8
2 changed files with 11 additions and 44 deletions

View file

@ -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";