This commit is contained in:
Vanessa 2023-10-26 23:49:16 +08:00
parent af5f542bc0
commit 8f15b0f4ac

View file

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