Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/5428

Vanessa7c4cff379057
diff --git a/app/src/util/mount.ts b/app/src/util/mount.ts
index 1d2929af3c..923eda7732 100644
--- a/app/src/util/mount.ts
+++ b/app/src/util/mount.ts
@@ -25,7 +25,7 @@ export const newDailyNote = () => {
return;
}
const localNotebookId = window.localStorage.getItem(Constants.LOCAL_DAILYNOTEID);
- if (localNotebookId && getNotebookName(localNotebookId)) {
+ if (localNotebookId && getNotebookName(localNotebookId) && !isMobile()) {
fetchPost("/api/filetree/createDailyNote", {
notebook:localNotebookId
});
@@ -48,6 +48,7 @@ export const newDailyNote = () => {
});
const btnsElement = dialog.element.querySelectorAll(".b3-button");
const selectElement = dialog.element.querySelector(".b3-select") as HTMLSelectElement;
+ selectElement.value = localNotebookId;
btnsElement[0].addEventListener("click", () => {
dialog.destroy();
});