Vanessa 2025-09-08 09:48:36 +08:00
parent 490234caab
commit 006da6bc90
2 changed files with 14 additions and 0 deletions

View file

@ -1153,6 +1153,13 @@ data-type="navigation-root" data-path="/">
path: liElement.getAttribute("data-path"),
}, response => {
if (response.data.path === "/" && response.data.files.length === 0) {
newFile({
app: this.app,
notebookId,
currentPath: "/",
useSavePath: false,
listDocTree: true,
});
showMessage(window.siyuan.languages.emptyContent);
return;
}

View file

@ -650,6 +650,13 @@ export class MobileFiles extends Model {
}, response => {
if (response.data.path === "/" && response.data.files.length === 0) {
showMessage(window.siyuan.languages.emptyContent);
newFile({
app: this.app,
notebookId,
currentPath: "/",
useSavePath: false,
listDocTree: true,
});
return;
}
this.onLsHTML(response.data);