mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
This commit is contained in:
parent
fac82ad618
commit
e01b7256b5
1 changed files with 2 additions and 1 deletions
|
@ -772,7 +772,8 @@ export class Files extends Model {
|
||||||
if (!liElement) {
|
if (!liElement) {
|
||||||
const dirname = pathPosix().dirname(currentPath);
|
const dirname = pathPosix().dirname(currentPath);
|
||||||
if (dirname === "/") {
|
if (dirname === "/") {
|
||||||
currentPath = dirname;
|
this.getLeaf(treeElement.firstElementChild, notebookId, true);
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
currentPath = dirname + ".sy";
|
currentPath = dirname + ".sy";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue