From 16dd877860e4b814d1051d81da7fc71e47e19bc9 Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 12 Jun 2026 13:18:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20SearXNG=20=E6=90=9C=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E5=8F=82=E6=95=B0=E5=8E=BB=E6=8E=89=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=EF=BC=8C=E7=95=99=E7=A9=BA=E4=BD=BF=E7=94=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E9=BB=98=E8=AE=A4=E5=BC=95=E6=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/tool-handlers-system.ts | 2 +- src/renderer/components/searxng-modal.ts | 2 +- src/renderer/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/tool-handlers-system.ts b/src/main/tool-handlers-system.ts index fae4c75..86b94df 100644 --- a/src/main/tool-handlers-system.ts +++ b/src/main/tool-handlers-system.ts @@ -450,7 +450,7 @@ async function handleWebSearchSearxng( if (!url) { return { success: false, error: 'SearXNG API 地址未配置。请在 SearXNG 设置中填写 API 地址。' }; } - const engines = getSetting('searxng_engines', 'google,bing,duckduckgo,wikipedia'); + const engines = getSetting('searxng_engines', ''); const language = getSetting('searxng_language', 'zh-CN'); const safesearch = getSetting('searxng_safesearch', 1); const cfgTimeRange = getSetting('searxng_time_range', ''); diff --git a/src/renderer/components/searxng-modal.ts b/src/renderer/components/searxng-modal.ts index 5f1ff44..3e04bb9 100644 --- a/src/renderer/components/searxng-modal.ts +++ b/src/renderer/components/searxng-modal.ts @@ -11,7 +11,7 @@ import { logInfo, logSuccess } from '../services/log-service.js'; const DEFAULTS = { enabled: false, url: '', - engines: 'google,bing,duckduckgo,wikipedia', + engines: '', language: 'zh-CN', safesearch: 1, time_range: '', diff --git a/src/renderer/index.html b/src/renderer/index.html index f090221..8ec3860 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -739,7 +739,7 @@
- +

逗号分隔的引擎列表。常用: google, bing, duckduckgo, wikipedia, brave, qwant, startpage