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/7321

Vanessa929a25a783a6
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 5aa7ee4077..35a030e2f5 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -613,6 +613,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
};
const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element: Element, event: MouseEvent) => {
+ const criteria = await fetchSyncPost("/api/storage/getCriteria");
window.siyuan.menus.menu.remove();
const sortMenu = [{
label: window.siyuan.languages.type,
@@ -788,7 +789,6 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
});
}
}).element);
- const criteria = await fetchSyncPost("/api/storage/getCriteria");
const searchSubMenu: IMenu[] = [];
criteria.data.forEach((item: ISearchOption) => {
searchSubMenu.push({