mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
af5f542bc0
commit
8f15b0f4ac
1 changed files with 12 additions and 7 deletions
|
|
@ -51,6 +51,10 @@ export const getNewFilePath = (useSavePath: boolean) => {
|
|||
}
|
||||
}
|
||||
/// #endif
|
||||
if (!notebookId) {
|
||||
if (window.siyuan.mobile.editor) {
|
||||
notebookId = window.siyuan.mobile.editor.protyle.notebookId;
|
||||
}
|
||||
if (!notebookId) {
|
||||
window.siyuan.notebooks.find(item => {
|
||||
if (!item.closed) {
|
||||
|
|
@ -60,6 +64,7 @@ export const getNewFilePath = (useSavePath: boolean) => {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
return {notebookId, currentPath};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue