Skip to content

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

:sparkles: https://github.com/siyuan-note/siyuan/issues/6744

Vanessa94a938e2c750
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index d5c5f5239a..b3ece6ed76 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -580,6 +580,10 @@ const addConfigGroupMenu = (config: ISearchOption, edit: Protyle, element: Eleme
click() {
element.querySelector("#searchList").parentElement.style.flexDirection = "column";
setPadding(edit.protyle);
+ config.layout = 0;
+ if (!element.parentElement.getAttribute("data-id")) {
+ localStorage.setItem(Constants.LOCAL_SEARCHEDATA, JSON.stringify(config));
+ }
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
@@ -588,6 +592,10 @@ const addConfigGroupMenu = (config: ISearchOption, edit: Protyle, element: Eleme
click() {
element.querySelector("#searchList").parentElement.style.flexDirection = "row";
setPadding(edit.protyle);
+ config.layout = 1;
+ if (!element.parentElement.getAttribute("data-id")) {
+ localStorage.setItem(Constants.LOCAL_SEARCHEDATA, JSON.stringify(config));
+ }
}
}).element);
};