From 8ec584c85f98c2f43c23f6e67e4ce3da18071742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 20 May 2026 21:00:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=B7=B3=E8=BD=AC=E5=88=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 options 页面路径从 '/entrypoints/options/index.html' 修正为 '/options.html' - WXT 构建后 entrypoints/options/index.html 会输出为根目录的 options.html --- entrypoints/background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoints/background.ts b/entrypoints/background.ts index da73d77..d1b15f6 100644 --- a/entrypoints/background.ts +++ b/entrypoints/background.ts @@ -32,7 +32,7 @@ export default defineBackground(() => { // sidepanel 未打开或无法通信,继续执行其他方案 } - const optionsUrl = chrome.runtime.getURL('/entrypoints/options/index.html'); + const optionsUrl = chrome.runtime.getURL('/options.html'); const params = new URLSearchParams({ feature: featureKey, payload }); await browser.tabs.create({ url: `${optionsUrl}?${params.toString()}` }); });