From 1b2debb4ea5972dc4d97a277b34f0a45c8b9de48 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 9 Jun 2025 23:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=C3=A5=E5=88=A0=E9=99=A4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=AF=B7=E6=B1=82=E6=99=BA=E8=83=BD=E5=8A=A9=E6=89=8B?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/login.html | 1 - readme.md | 1 + scripts/login.js | 10 ---------- scripts/popup.js | 3 --- 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/manifest.json b/manifest.json index 372691e..328ad89 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "渠道应用开发部知识库", - "version": "2.0.4", + "version": "2.0.5", "description": "通过关键词快速搜索内部文档", "permissions": ["storage"], "host_permissions": [ diff --git a/pages/login.html b/pages/login.html index 2b1108f..159de1b 100644 --- a/pages/login.html +++ b/pages/login.html @@ -51,7 +51,6 @@
-
diff --git a/readme.md b/readme.md index 450f097..164c963 100644 --- a/readme.md +++ b/readme.md @@ -8,4 +8,5 @@ | 2025.06.03 | V2.0.2 | Luke.Ye | 支持LLM工作区配置化 | | 2025.06.06 | V2.0.3 | Luke.Ye | 添加跳转页面权限校验 | | 2025.06.09 | V2.0.4 | Luke.Ye | 优化es搜索展示页面 | +| 2025.06.10 | V2.0.5 | Luke.Ye | 移除自动请求智能助手逻辑 | diff --git a/scripts/login.js b/scripts/login.js index a98a911..eff6aad 100644 --- a/scripts/login.js +++ b/scripts/login.js @@ -13,13 +13,6 @@ document.addEventListener("DOMContentLoaded", async function () { const resTokenField = resParams.find(p => p.label.includes("Token"))?.field || "token"; const resUsernameField = resParams.find(p => p.label.includes("用户名"))?.field || "username"; - // 自动填充 LLM 密码(与登录无关,只是附带存储) - chrome.storage.local.get(["llmPassword"], function (res) { - if (res.llmPassword) { - document.getElementById("llmPassword").value = res.llmPassword; - } - }); - document.getElementById("loginBtn").addEventListener("click", doLogin); document.addEventListener("keydown", (e) => { if (e.key === "Enter") doLogin(); @@ -28,7 +21,6 @@ document.addEventListener("DOMContentLoaded", async function () { function doLogin() { const username = document.getElementById("username").value.trim(); const password = document.getElementById("password").value.trim(); - const llmPassword = document.getElementById("llmPassword").value; const errorBox = document.getElementById("errorBox"); errorBox.textContent = ""; @@ -37,8 +29,6 @@ document.addEventListener("DOMContentLoaded", async function () { return; } - chrome.storage.local.set({ llmPassword }); - const requestBody = {}; requestBody[reqUsernameField] = username; requestBody[reqPasswordField] = password; diff --git a/scripts/popup.js b/scripts/popup.js index 6d16834..eaf80bc 100644 --- a/scripts/popup.js +++ b/scripts/popup.js @@ -85,9 +85,6 @@ document.addEventListener("DOMContentLoaded", async () => { if (!token || !raw) return; updateHistory(raw); renderHistoryTags(true); - if (!isNewTab) { - fetchLLMAnswer(raw, llmResultContainer, llmResultContent); - } fetchResults(raw, 1); }