Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/10396

Vanessa98e01093798e
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 0aa503e5ca..b60b63f545 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -638,7 +638,15 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo
event.preventDefault();
break;
} else if (target.id === "searchUnRef") {
- unRefEdit = openSearchUnRef(app, unRefPanelElement, !closeCB);
+ unRefEdit = openSearchUnRef(app, unRefPanelElement, !closeCB);
+ event.stopPropagation();
+ event.preventDefault();
+ break;
+ } else if (target.id === "unRefMore") {
+ assetMoreMenu(target, assetsElement, () => {
+ assetInputEvent(assetsElement);
+ setStorageVal(Constants.LOCAL_SEARCHASSET, localSearch);
+ });
event.stopPropagation();
event.preventDefault();
break;