mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 10:20:16 +01:00
This commit is contained in:
parent
7688733364
commit
4ee566cbd9
30 changed files with 153 additions and 163 deletions
|
|
@ -34,7 +34,7 @@ export const newDailyNote = () => {
|
|||
});
|
||||
return;
|
||||
}
|
||||
const localNotebookId = localStorage.getItem(Constants.LOCAL_DAILYNOTEID);
|
||||
const localNotebookId = window.siyuan.storage[Constants.LOCAL_DAILYNOTEID];
|
||||
if (localNotebookId && getNotebookName(localNotebookId) && !isMobile()) {
|
||||
fetchPost("/api/filetree/createDailyNote", {
|
||||
notebook: localNotebookId,
|
||||
|
|
@ -66,7 +66,7 @@ export const newDailyNote = () => {
|
|||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
const notebook = selectElement.value;
|
||||
localStorage.setItem(Constants.LOCAL_DAILYNOTEID, notebook);
|
||||
window.siyuan.storage[Constants.LOCAL_DAILYNOTEID] = notebook;
|
||||
fetchPost("/api/filetree/createDailyNote", {
|
||||
notebook,
|
||||
app: Constants.SIYUAN_APPID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue