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
|
|
@ -52,13 +52,18 @@ export const getNewFilePath = (useSavePath: boolean) => {
|
||||||
}
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
if (!notebookId) {
|
if (!notebookId) {
|
||||||
window.siyuan.notebooks.find(item => {
|
if (window.siyuan.mobile.editor) {
|
||||||
if (!item.closed) {
|
notebookId = window.siyuan.mobile.editor.protyle.notebookId;
|
||||||
notebookId = item.id;
|
}
|
||||||
currentPath = "/";
|
if (!notebookId) {
|
||||||
return true;
|
window.siyuan.notebooks.find(item => {
|
||||||
}
|
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