Skip to content

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

:rotating_light:

Vanessa907dd7765544
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index f6592d1ac6..5439d8f909 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -86,14 +86,6 @@ export const openGlobalSearch = (app: App, text: string, replace: boolean, searc
// closeCB 不存在为页签搜索
export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, element: HTMLElement, closeCB?: () => void) => {
- let methodText = window.siyuan.languages.keyword;
- if (config.method === 1) {
- methodText = window.siyuan.languages.querySyntax;
- } else if (config.method === 2) {
- methodText = "SQL";
- } else if (config.method === 3) {
- methodText = window.siyuan.languages.regex;
- }
let includeChild = true;
let enableIncludeChild = false;
config.idPath.forEach(item => {