From 92bca936d8dbec154efd0c10912ebc5d5a1f546d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Tue, 26 May 2026 12:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E6=89=93=E5=BC=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=AA=97=E5=8F=A3=E4=B8=8D=E5=86=8D=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=A1=8C=E9=9D=A2=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - enableBing() 调用加 initDone 守卫,初始化阶段跳过 --- web/settings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/settings.html b/web/settings.html index 5346a4f..f0e0cff 100644 --- a/web/settings.html +++ b/web/settings.html @@ -523,7 +523,7 @@ function setWpType(type) { document.querySelectorAll('.wp-type-section').forEach(function(s) { s.classList.remove('visible'); }); var sec = document.getElementById('sec-' + type); if (sec) sec.classList.add('visible'); - if (type === 'bing' && currentWpType !== 'bing') { + if (initDone && type === 'bing' && currentWpType !== 'bing') { if (window.enableBing) window.enableBing(); } currentWpType = type;