mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🐛 new file
This commit is contained in:
parent
dd5f9f3d66
commit
0df6fc6a63
1 changed files with 11 additions and 12 deletions
|
|
@ -50,20 +50,19 @@ export const getNewFilePath = (useSavePath: boolean) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// #else
|
||||||
|
if (window.siyuan.mobile.editor) {
|
||||||
|
notebookId = window.siyuan.mobile.editor.protyle.notebookId;
|
||||||
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
if (!notebookId) {
|
if (!notebookId) {
|
||||||
if (window.siyuan.mobile.editor) {
|
window.siyuan.notebooks.find(item => {
|
||||||
notebookId = window.siyuan.mobile.editor.protyle.notebookId;
|
if (!item.closed) {
|
||||||
}
|
notebookId = item.id;
|
||||||
if (!notebookId) {
|
currentPath = "/";
|
||||||
window.siyuan.notebooks.find(item => {
|
return true;
|
||||||
if (!item.closed) {
|
}
|
||||||
notebookId = item.id;
|
});
|
||||||
currentPath = "/";
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return {notebookId, currentPath};
|
return {notebookId, currentPath};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue