|
@@ -613,6 +613,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
|
|
};
|
|
};
|
|
|
|
|
|
const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element: Element, event: MouseEvent) => {
|
|
const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element: Element, event: MouseEvent) => {
|
|
|
|
+ const criteria = await fetchSyncPost("/api/storage/getCriteria");
|
|
window.siyuan.menus.menu.remove();
|
|
window.siyuan.menus.menu.remove();
|
|
const sortMenu = [{
|
|
const sortMenu = [{
|
|
label: window.siyuan.languages.type,
|
|
label: window.siyuan.languages.type,
|
|
@@ -788,7 +789,6 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}).element);
|
|
}).element);
|
|
- const criteria = await fetchSyncPost("/api/storage/getCriteria");
|
|
|
|
const searchSubMenu: IMenu[] = [];
|
|
const searchSubMenu: IMenu[] = [];
|
|
criteria.data.forEach((item: ISearchOption) => {
|
|
criteria.data.forEach((item: ISearchOption) => {
|
|
searchSubMenu.push({
|
|
searchSubMenu.push({
|