An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16442
Vanessa4df41234a260
diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.tsindex ad35e73304..1ec3fd8ff5 100644--- a/app/src/mobile/menu/search.ts+++ b/app/src/mobile/menu/search.ts@@ -689,15 +689,19 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab}, false);};-export const popSearch = (app: App, searchConfig?: any) => {+export const popSearch = (app: App, searchConfig?: Config.IUILayoutTabSearchConfig) => {const config: Config.IUILayoutTabSearchConfig = JSON.parse(JSON.stringify(window.siyuan.storage[Constants.LOCAL_SEARCHDATA]));const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString();if (rangeText) {config.k = rangeText;}if (searchConfig) {- Object.keys(searchConfig).forEach((key: "r") => {- config[key] = searchConfig[key];+ Object.keys(searchConfig).forEach((key: keyof Config.IUILayoutTabSearchConfig) => {+ if (key === "idPath") {+ config[key] = [...searchConfig[key]];+ } else {+ config[key as "r"] = searchConfig[key as "r"];+ }});}