修复: 打开设置窗口不再触发桌面刷新

- enableBing() 调用加 initDone 守卫,初始化阶段跳过
This commit is contained in:
2026-05-26 12:21:02 +08:00
parent 79851781aa
commit 92bca936d8

View File

@@ -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;