🐛 new file

This commit is contained in:
Vanessa 2023-10-29 17:15:44 +08:00
parent dd5f9f3d66
commit 0df6fc6a63

View file

@ -50,11 +50,11 @@ export const getNewFilePath = (useSavePath: boolean) => {
} }
} }
} }
/// #endif /// #else
if (!notebookId) {
if (window.siyuan.mobile.editor) { if (window.siyuan.mobile.editor) {
notebookId = window.siyuan.mobile.editor.protyle.notebookId; notebookId = window.siyuan.mobile.editor.protyle.notebookId;
} }
/// #endif
if (!notebookId) { if (!notebookId) {
window.siyuan.notebooks.find(item => { window.siyuan.notebooks.find(item => {
if (!item.closed) { if (!item.closed) {
@ -64,7 +64,6 @@ export const getNewFilePath = (useSavePath: boolean) => {
} }
}); });
} }
}
return {notebookId, currentPath}; return {notebookId, currentPath};
}; };